MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_disable

Method test_disable

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

Source from the content-addressed store, hash-verified

386
387 @skip_segfault_on_android
388 def test_disable(self):
389 code = """
390 import faulthandler
391 faulthandler.enable()
392 faulthandler.disable()
393 faulthandler._sigsegv()
394 """
395 not_expected = 'Fatal Python error'
396 stderr, exitcode = self.get_output(code)
397 stderr = '\n'.join(stderr)
398 self.assertTrue(not_expected not in stderr,
399 "%r is present in %r" % (not_expected, stderr))
400 self.assertNotEqual(exitcode, 0)
401
402 @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: Cannot find 'Extension modules:' in 'Fatal Python error: Segmentation fault\n\nCurrent thread 0x0000000000004284 (most recent call first):\n File "<string>", line 6 in <module>'
403 @skip_segfault_on_android

Callers

nothing calls this directly

Calls 4

get_outputMethod · 0.95
assertTrueMethod · 0.80
assertNotEqualMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected