Test option to disable fault handler in the command line.
(pytester: Pytester)
| 55 | |
| 56 | |
| 57 | def test_disabled(pytester: Pytester) -> None: |
| 58 | """Test option to disable fault handler in the command line.""" |
| 59 | pytester.makepyfile( |
| 60 | """ |
| 61 | import faulthandler |
| 62 | def test_disabled(): |
| 63 | assert not faulthandler.is_enabled() |
| 64 | """ |
| 65 | ) |
| 66 | result = pytester.runpytest_subprocess("-p", "no:faulthandler") |
| 67 | result.stdout.fnmatch_lines(["*1 passed*"]) |
| 68 | assert result.ret == 0 |
| 69 | |
| 70 | |
| 71 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected