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"]
docstr: Show deprecation warnings by default, even if user has customized the warnings filters (#4013).
docstr_tok: ["Show","deprecation","warnings","by","default",",","even","if","user","has","customized","the","warnings","filters","(","#","4013",")","."]
code: def test_shown_by_default(
      self, pytester: Pytester, customize_filters
  ) -> None:
      """Show deprecation warnings by default, even if user has customized the warnings filters (#4013)."""
      self.create_file(pytester)
      if customize_filters:
          pytester.makeini(
              """
                  [pytest]
                  filterwarnings =
                      once::UserWarning
              """
          )
      result = pytester.runpytest_subprocess()
      result.stdout.fnmatch_lines(
          [
              "*== %s ==*" % WARNINGS_SUMMARY_HEADER,
              "*test_shown_by_default.py:3: DeprecationWarning: collection",
              "*test_shown_by_default.py:7: PendingDeprecationWarning: test run",
              "* 1 passed, 2 warnings*",
          ]
      )
  
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 2 for calling the TestDeprecationWarningsByDefault obj's underlying member method code with example usage: obj.test_shown_by_default(pytester, customize_filters) without return types