test_request_garbage is flaky when running with xdist

Example failure:

https://travis-ci.org/pytest-dev/pytest/jobs/441305926#L545
This commit is contained in:
Bruno Oliveira 2018-10-14 15:17:08 -03:00
parent 486ded3fca
commit 4808145846
1 changed files with 6 additions and 0 deletions

View File

@ -494,6 +494,12 @@ class TestRequestBasic(object):
reason="this method of test doesn't work on pypy",
)
def test_request_garbage(self, testdir):
try:
import xdist # noqa
except ImportError:
pass
else:
pytest.xfail("this test is flaky when executed with xdist")
testdir.makepyfile(
"""
import sys