(pytester: Pytester)
| 472 | |
| 473 | |
| 474 | def test_pytester_run_timeout_expires(pytester: Pytester) -> None: |
| 475 | testfile = pytester.makepyfile( |
| 476 | """ |
| 477 | import time |
| 478 | |
| 479 | def test_timeout(): |
| 480 | time.sleep(10)""" |
| 481 | ) |
| 482 | with pytest.raises(pytester.TimeoutExpired): |
| 483 | pytester.runpytest_subprocess(testfile, timeout=1) |
| 484 | |
| 485 | |
| 486 | def test_linematcher_with_nonlist() -> None: |
nothing calls this directly
no test coverage detected