Skip to content

Commit da12c52

Browse files
committed
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
1 parent 56e6b4b commit da12c52

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

_pytest/compat.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ def _setup_collect_fakemodule():
284284
# Without this the test_dupfile_on_textio will fail, otherwise CaptureIO could directly inherit from StringIO.
285285
from py.io import TextIO
286286

287-
288287
class CaptureIO(TextIO):
289288

290289
@property

testing/test_capture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def test_something():
355355
""")
356356
result = testdir.runpytest_subprocess(
357357
p, "--traceconfig",
358-
"-p", "no:capturelog")
358+
"-p", "no:capturelog", "-p", "no:hypothesis", "-p", "no:hypothesispytest")
359359
assert result.ret != 0
360360
result.stdout.fnmatch_lines([
361361
"*hello432*",

0 commit comments

Comments
 (0)