(pytester: Pytester)
| 1381 | |
| 1382 | |
| 1383 | def test_cwd_deleted(pytester: Pytester) -> None: |
| 1384 | pytester.makepyfile( |
| 1385 | """ |
| 1386 | import os |
| 1387 | |
| 1388 | def test(tmp_path): |
| 1389 | os.chdir(tmp_path) |
| 1390 | tmp_path.unlink() |
| 1391 | assert False |
| 1392 | """ |
| 1393 | ) |
| 1394 | result = pytester.runpytest() |
| 1395 | result.stdout.fnmatch_lines(["* 1 failed in *"]) |
| 1396 | result.stdout.no_fnmatch_line("*INTERNALERROR*") |
| 1397 | result.stderr.no_fnmatch_line("*INTERNALERROR*") |
| 1398 | |
| 1399 | |
| 1400 | def test_regression_nagative_line_index(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected