(pytester: Pytester)
| 2335 | |
| 2336 | |
| 2337 | def test_collecterror(pytester: Pytester) -> None: |
| 2338 | p1 = pytester.makepyfile("raise SyntaxError()") |
| 2339 | result = pytester.runpytest("-ra", str(p1)) |
| 2340 | result.stdout.fnmatch_lines( |
| 2341 | [ |
| 2342 | "collected 0 items / 1 error", |
| 2343 | "*= ERRORS =*", |
| 2344 | "*_ ERROR collecting test_collecterror.py _*", |
| 2345 | "E SyntaxError: *", |
| 2346 | "*= short test summary info =*", |
| 2347 | "ERROR test_collecterror.py", |
| 2348 | "*! Interrupted: 1 error during collection !*", |
| 2349 | "*= 1 error in *", |
| 2350 | ] |
| 2351 | ) |
| 2352 | |
| 2353 | |
| 2354 | def test_no_summary_collecterror(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected