MCPcopy Create free account
hub / github.com/pytest-dev/pytest / setup_crashing_test

Function setup_crashing_test

testing/test_faulthandler.py:22–30  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

20
21
22def setup_crashing_test(pytester: Pytester) -> None:
23 pytester.makepyfile(
24 """
25 import faulthandler
26 import atexit
27 def test_ok():
28 atexit.register(faulthandler._sigabrt)
29 """
30 )
31
32
33def test_crash_during_shutdown_captured(pytester: Pytester) -> None:

Calls 1

makepyfileMethod · 0.45

Tested by

no test coverage detected