Skip to content

Commit

Permalink
Skip horrendous breakage on pypy and windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed May 22, 2020
1 parent b1ac198 commit daacd76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_pytest_cov.py
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,7 @@ def test_external_data_file_xdist(testdir):
assert glob.glob(str(testdir.tmpdir.join('some/special/place/coverage-data*')))


@pytest.mark.skipif('sys.platform == "win32" and platform.python_implementation() == "PyPy"')
def test_xdist_no_data_collected(testdir):
testdir.makepyfile(target="x = 123")
script = testdir.makepyfile("""
Expand All @@ -1864,11 +1865,11 @@ def test_foobar():
'--cov=target',
'-n', '1',
script)
assert result.ret == 0
assert 'no-data-collected' not in result.stderr.str()
assert 'no-data-collected' not in result.stdout.str()
assert 'module-not-imported' not in result.stderr.str()
assert 'module-not-imported' not in result.stdout.str()
assert result.ret == 0


def test_external_data_file_negative(testdir):
Expand Down

0 comments on commit daacd76

Please sign in to comment.