class_docstr: Note: all pytest runs are executed in a subprocess so we don't inherit warning filters
  from pytest's own test suite
class_docstr_tok: ["Note",":","all","pytest","runs","are","executed","in","a","subprocess","so","we","do","n't","inherit","warning","filters","from","pytest","'s","own","test","suite"]
code: def test_hidden_by_cmdline(self, pytester: Pytester) -> None:
      self.create_file(pytester)
      result = pytester.runpytest_subprocess(
          "-W",
          "ignore::DeprecationWarning",
          "-W",
          "ignore::PendingDeprecationWarning",
      )
      assert WARNINGS_SUMMARY_HEADER not in result.stdout.str()
  
imports: import os
  import sys
  import warnings
  from typing import List
  from typing import Optional
  from typing import Tuple
  import pytest
  from _pytest.fixtures import FixtureRequest
  from _pytest.pytester import Pytester
label_desc: Use image node_id 5 for calling the TestDeprecationWarningsByDefault obj's underlying member method code with example usage: obj.test_hidden_by_cmdline(pytester) without return types