fail if snap is removed in the future

This commit is contained in:
David Szotten 2015-07-26 01:28:00 +02:00
parent 983d249680
commit 3e6bee2fc6
1 changed files with 1 additions and 0 deletions

View File

@ -572,6 +572,7 @@ def test_error_during_readouterr(testdir):
from _pytest.capture import FDCapture
def bad_snap(self):
raise Exception('boom')
assert FDCapture.snap
FDCapture.snap = bad_snap
""")
result = testdir.runpytest_subprocess(