Skip to content

Commit daacd76

Browse files
committed
Skip horrendous breakage on pypy and windows.
1 parent b1ac198 commit daacd76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_pytest_cov.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1853,6 +1853,7 @@ def test_external_data_file_xdist(testdir):
18531853
assert glob.glob(str(testdir.tmpdir.join('some/special/place/coverage-data*')))
18541854

18551855

1856+
@pytest.mark.skipif('sys.platform == "win32" and platform.python_implementation() == "PyPy"')
18561857
def test_xdist_no_data_collected(testdir):
18571858
testdir.makepyfile(target="x = 123")
18581859
script = testdir.makepyfile("""
@@ -1864,11 +1865,11 @@ def test_foobar():
18641865
'--cov=target',
18651866
'-n', '1',
18661867
script)
1867-
assert result.ret == 0
18681868
assert 'no-data-collected' not in result.stderr.str()
18691869
assert 'no-data-collected' not in result.stdout.str()
18701870
assert 'module-not-imported' not in result.stderr.str()
18711871
assert 'module-not-imported' not in result.stdout.str()
1872+
assert result.ret == 0
18721873

18731874

18741875
def test_external_data_file_negative(testdir):

0 commit comments

Comments
 (0)