Skip to content

Commit 4808145

Browse files
committed
test_request_garbage is flaky when running with xdist
Example failure: https://travis-ci.org/pytest-dev/pytest/jobs/441305926#L545
1 parent 486ded3 commit 4808145

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

testing/python/fixture.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,12 @@ def test_method(self, something):
494494
reason="this method of test doesn't work on pypy",
495495
)
496496
def test_request_garbage(self, testdir):
497+
try:
498+
import xdist # noqa
499+
except ImportError:
500+
pass
501+
else:
502+
pytest.xfail("this test is flaky when executed with xdist")
497503
testdir.makepyfile(
498504
"""
499505
import sys

0 commit comments

Comments
 (0)