Skip to content

Commit 7a62692

Browse files
committed
[features] tests: fix test_crash_on_closing_tmpfile_py27
(cherry picked from commit 4f0eec2)
1 parent 1667cf3 commit 7a62692

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

testing/test_capture.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,6 +1407,8 @@ def test_spam_in_thread():
14071407
printing.wait()
14081408
"""
14091409
)
1410+
# Do not consider plugins like hypothesis, which might output to stderr.
1411+
testdir.monkeypatch.setenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", "1")
14101412
result = testdir.runpytest_subprocess(str(p))
14111413
assert result.ret == 0
14121414
assert result.stderr.str() == ""

0 commit comments

Comments
 (0)