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.
1 parent df0cff1 commit acb62baCopy full SHA for acb62ba
testing/test_stepwise.py
@@ -1,4 +1,6 @@
1
# -*- coding: utf-8 -*-
2
+import sys
3
+
4
import pytest
5
6
@@ -208,7 +210,8 @@ def test_d(): pass
208
210
209
211
# because we are writing to the same file, mtime might not be affected enough to
212
# invalidate the cache, making this next run flaky
- testdir.tmpdir.join("__pycache__").remove()
213
+ if not sys.dont_write_bytecode:
214
+ testdir.tmpdir.join("__pycache__").remove()
215
testdir.makepyfile(contents.format(assert_value="0", strict="True"))
216
result = testdir.runpytest("--sw", "-v")
217
result.stdout.fnmatch_lines(
0 commit comments