From 7a626921c0d2d88a5f24b3c9d2be87503a926974 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 18 Jan 2020 13:08:58 +0100 Subject: [PATCH] [features] tests: fix test_crash_on_closing_tmpfile_py27 (cherry picked from commit 4f0eec2022c9c25c98c719f1745f57e9afe04274) --- testing/test_capture.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testing/test_capture.py b/testing/test_capture.py index 1885c9bb6..b1fee95db 100644 --- a/testing/test_capture.py +++ b/testing/test_capture.py @@ -1407,6 +1407,8 @@ def test_crash_on_closing_tmpfile_py27(testdir): printing.wait() """ ) + # Do not consider plugins like hypothesis, which might output to stderr. + testdir.monkeypatch.setenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", "1") result = testdir.runpytest_subprocess(str(p)) assert result.ret == 0 assert result.stderr.str() == ""