summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testing/acceptance_test.py1
-rw-r--r--testing/python/fixture.py6
2 files changed, 6 insertions, 1 deletions
diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py
index 6f791dc84..41cdba067 100644
--- a/testing/acceptance_test.py
+++ b/testing/acceptance_test.py
@@ -808,7 +808,6 @@ class TestDurations(object):
result.stdout.fnmatch_lines_random(
["*durations*", "*call*test_3*", "*call*test_2*"]
)
- assert "test_something" not in result.stdout.str()
result.stdout.fnmatch_lines(
["(0.00 durations hidden. Use -vv to show these durations.)"]
)
diff --git a/testing/python/fixture.py b/testing/python/fixture.py
index 7e125e0b7..7ec7e9c1c 100644
--- a/testing/python/fixture.py
+++ b/testing/python/fixture.py
@@ -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