MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_runs_twice_xdist

Function test_runs_twice_xdist

testing/test_junitxml.py:1395–1410  ·  view source on GitHub ↗
(
    pytester: Pytester, monkeypatch: MonkeyPatch, run_and_parse: RunAndParse
)

Source from the content-addressed store, hash-verified

1393
1394
1395def 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
1413def test_fancy_items_regression(pytester: Pytester, run_and_parse: RunAndParse) -> None:

Callers

nothing calls this directly

Calls 5

run_and_parseFunction · 0.85
delenvMethod · 0.80
no_fnmatch_lineMethod · 0.80
find_by_tagMethod · 0.80
makepyfileMethod · 0.45

Tested by

no test coverage detected