MCPcopy Index your code
hub / github.com/python/cpython / test_disabled_by_default

Method test_disabled_by_default

Lib/test/test_faulthandler.py:445–451  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

443
444 @support.requires_subprocess()
445 def test_disabled_by_default(self):
446 # By default, the module should be disabled
447 code = "import faulthandler; print(faulthandler.is_enabled())"
448 args = (sys.executable, "-E", "-c", code)
449 # don't use assert_python_ok() because it always enables faulthandler
450 output = subprocess.check_output(args)
451 self.assertEqual(output.rstrip(), b"False")
452
453 @support.requires_subprocess()
454 def test_sys_xoptions(self):

Callers

nothing calls this directly

Calls 3

check_outputMethod · 0.45
assertEqualMethod · 0.45
rstripMethod · 0.45

Tested by

no test coverage detected