Skip to content

Commit 148f2fc

Browse files
committed
Fix test_error_during_readouterr: syspathinsert is unused
1 parent 5d9d12a commit 148f2fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testing/test_capture.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -819,15 +819,15 @@ def test_error_during_readouterr(testdir):
819819
testdir.makepyfile(
820820
pytest_xyz="""
821821
from _pytest.capture import FDCapture
822+
822823
def bad_snap(self):
823824
raise Exception('boom')
825+
824826
assert FDCapture.snap
825827
FDCapture.snap = bad_snap
826828
"""
827829
)
828-
result = testdir.runpytest_subprocess(
829-
"-p", "pytest_xyz", "--version", syspathinsert=True
830-
)
830+
result = testdir.runpytest_subprocess("-p", "pytest_xyz", "--version")
831831
result.stderr.fnmatch_lines(
832832
["*in bad_snap", " raise Exception('boom')", "Exception: boom"]
833833
)

0 commit comments

Comments
 (0)