code: def test_crash_during_shutdown_not_captured(
      pytester: Pytester,
  ) -> None:
      """
      Check that pytest leaves faulthandler disabled if it was not enabled during configure.
      This prevents us from seeing crashes during interpreter shutdown (see #8260).
      """
      setup_crashing_test(pytester)
      args = (sys.executable, "-mpytest")
      result = pytester.run(*args)
      result.stderr.no_fnmatch_line("*Fatal Python error*")
      assert result.ret != 0
  
file_path: pytest/testing/test_faulthandler.py
imports: import io
  import sys
  import pytest
  from _pytest.pytester import Pytester
label_desc: Use image node_id 4 for calling a global function with example usage: test_crash_during_shutdown_not_captured(pytester) without return types