fail if snap is removed in the future
This commit is contained in:
parent
983d249680
commit
3e6bee2fc6
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue