We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50c7b5d + ab39502 commit fd2fb36Copy full SHA for fd2fb36
changelog/5664.trivial.rst
@@ -0,0 +1,2 @@
1
+When invoking pytest's own testsuite with ``PYTHONDONTWRITEBYTECODE=1``,
2
+the ``test_xfail_handling`` test no longer fails.
testing/test_stepwise.py
@@ -207,7 +207,8 @@ def test_d(): pass
207
208
# because we are writing to the same file, mtime might not be affected enough to
209
# invalidate the cache, making this next run flaky
210
- testdir.tmpdir.join("__pycache__").remove()
+ if testdir.tmpdir.join("__pycache__").exists():
211
+ testdir.tmpdir.join("__pycache__").remove()
212
testdir.makepyfile(contents.format(assert_value="0", strict="True"))
213
result = testdir.runpytest("--sw", "-v")
214
result.stdout.fnmatch_lines(
0 commit comments