Test single crashing test displays a traceback.
(pytester: Pytester)
| 10 | |
| 11 | |
| 12 | def test_enabled(pytester: Pytester) -> None: |
| 13 | """Test single crashing test displays a traceback.""" |
| 14 | pytester.makepyfile( |
| 15 | """ |
| 16 | import faulthandler |
| 17 | def test_crash(): |
| 18 | faulthandler._sigabrt() |
| 19 | """ |
| 20 | ) |
| 21 | result = pytester.runpytest_subprocess() |
| 22 | result.stderr.fnmatch_lines(["*Fatal Python error*"]) |
| 23 | assert result.ret != 0 |
| 24 | |
| 25 | |
| 26 | def setup_crashing_test(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected