Skip to content

Commit 3858888

Browse files
committed
Skip this on newer xdist.
1 parent 6da2d30 commit 3858888

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_pytest_cov.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,8 @@ def test_invalid_coverage_source(testdir):
994994

995995
@pytest.mark.skipif("'dev' in pytest.__version__")
996996
@pytest.mark.skipif('sys.platform == "win32" and platform.python_implementation() == "PyPy"')
997+
@pytest.mark.skipif('tuple(map(int, xdist.__version__.split("."))) >= (2, 3, 0)',
998+
reason="Since pytest-xdist 2.3.0 the parent sys.path is copied in the child process")
997999
def test_dist_missing_data(testdir):
9981000
"""Test failure when using a worker without pytest-cov installed."""
9991001
venv_path = os.path.join(str(testdir.tmpdir), 'venv')

0 commit comments

Comments
 (0)