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