summaryrefslogtreecommitdiff
path: root/testing/test_capture.py
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-04-10 21:56:44 +0200
committerDaniel Hahler <git@thequod.de>2019-04-10 21:57:45 +0200
commit148f2fc72cae5eb4af2e1ecf0ccd95aebec03b33 (patch)
tree9b928942945ee45b8dc08795a4ccce60a5fccb38 /testing/test_capture.py
parent5d9d12a6bec2c4b30d456382afe11ad44b203891 (diff)
downloadpytest-148f2fc72cae5eb4af2e1ecf0ccd95aebec03b33.tar.gz
Fix test_error_during_readouterr: syspathinsert is unused
Diffstat (limited to 'testing/test_capture.py')
-rw-r--r--testing/test_capture.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/test_capture.py b/testing/test_capture.py
index 1b34ab583..c3881128f 100644
--- a/testing/test_capture.py
+++ b/testing/test_capture.py
@@ -819,15 +819,15 @@ def test_error_during_readouterr(testdir):
testdir.makepyfile(
pytest_xyz="""
from _pytest.capture import FDCapture
+
def bad_snap(self):
raise Exception('boom')
+
assert FDCapture.snap
FDCapture.snap = bad_snap
"""
)
- result = testdir.runpytest_subprocess(
- "-p", "pytest_xyz", "--version", syspathinsert=True
- )
+ result = testdir.runpytest_subprocess("-p", "pytest_xyz", "--version")
result.stderr.fnmatch_lines(
["*in bad_snap", " raise Exception('boom')", "Exception: boom"]
)