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:
parent
486ded3fca
commit
4808145846
|
@ -494,6 +494,12 @@ class TestRequestBasic(object):
|
||||||
reason="this method of test doesn't work on pypy",
|
reason="this method of test doesn't work on pypy",
|
||||||
)
|
)
|
||||||
def test_request_garbage(self, testdir):
|
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(
|
testdir.makepyfile(
|
||||||
"""
|
"""
|
||||||
import sys
|
import sys
|
||||||
|
|
Loading…
Reference in New Issue