(
pytester: Pytester, monkeypatch: MonkeyPatch, run_and_parse: RunAndParse
)
| 1393 | |
| 1394 | |
| 1395 | def test_runs_twice_xdist( |
| 1396 | pytester: Pytester, monkeypatch: MonkeyPatch, run_and_parse: RunAndParse |
| 1397 | ) -> None: |
| 1398 | pytest.importorskip("xdist") |
| 1399 | monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD") |
| 1400 | f = pytester.makepyfile( |
| 1401 | """ |
| 1402 | def test_pass(): |
| 1403 | pass |
| 1404 | """ |
| 1405 | ) |
| 1406 | |
| 1407 | result, dom = run_and_parse(f, "--dist", "each", "--tx", "2*popen") |
| 1408 | result.stdout.no_fnmatch_line("*INTERNALERROR*") |
| 1409 | first, second = (x["classname"] for x in dom.find_by_tag("testcase")) |
| 1410 | assert first == second |
| 1411 | |
| 1412 | |
| 1413 | def test_fancy_items_regression(pytester: Pytester, run_and_parse: RunAndParse) -> None: |
nothing calls this directly
no test coverage detected