(pytester: Pytester, run_and_parse: RunAndParse)
| 1379 | |
| 1380 | |
| 1381 | def test_runs_twice(pytester: Pytester, run_and_parse: RunAndParse) -> None: |
| 1382 | f = pytester.makepyfile( |
| 1383 | """ |
| 1384 | def test_pass(): |
| 1385 | pass |
| 1386 | """ |
| 1387 | ) |
| 1388 | |
| 1389 | result, dom = run_and_parse(f, f) |
| 1390 | result.stdout.no_fnmatch_line("*INTERNALERROR*") |
| 1391 | first, second = (x["classname"] for x in dom.find_by_tag("testcase")) |
| 1392 | assert first == second |
| 1393 | |
| 1394 | |
| 1395 | def test_runs_twice_xdist( |
nothing calls this directly
no test coverage detected