From da12c5234737b7afb2865dc0a2bd99ee138678d3 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 20 Jul 2017 21:05:40 -0300 Subject: [PATCH] Fix: do not load hypothesis during test_logging_initialized_in_test A recent release seem to have added a "logging" import to the top-level, which breaks test_logging_initialized_in_test --- _pytest/compat.py | 1 - testing/test_capture.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/_pytest/compat.py b/_pytest/compat.py index f79567cf1..e539f073d 100644 --- a/_pytest/compat.py +++ b/_pytest/compat.py @@ -284,7 +284,6 @@ if _PY2: # Without this the test_dupfile_on_textio will fail, otherwise CaptureIO could directly inherit from StringIO. from py.io import TextIO - class CaptureIO(TextIO): @property diff --git a/testing/test_capture.py b/testing/test_capture.py index 4e1323e4b..38a92ca0e 100644 --- a/testing/test_capture.py +++ b/testing/test_capture.py @@ -355,7 +355,7 @@ class TestLoggingInteraction(object): """) result = testdir.runpytest_subprocess( p, "--traceconfig", - "-p", "no:capturelog") + "-p", "no:capturelog", "-p", "no:hypothesis", "-p", "no:hypothesispytest") assert result.ret != 0 result.stdout.fnmatch_lines([ "*hello432*",