(self)
| 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): |
nothing calls this directly
no test coverage detected