(pytester: Pytester)
| 561 | |
| 562 | |
| 563 | def test_pytest_exit_msg(pytester: Pytester) -> None: |
| 564 | pytester.makeconftest( |
| 565 | """ |
| 566 | import pytest |
| 567 | |
| 568 | def pytest_configure(config): |
| 569 | pytest.exit('oh noes') |
| 570 | """ |
| 571 | ) |
| 572 | result = pytester.runpytest() |
| 573 | result.stderr.fnmatch_lines(["Exit: oh noes"]) |
| 574 | |
| 575 | |
| 576 | def _strip_resource_warnings(lines): |
nothing calls this directly
no test coverage detected