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*",