From 3e6bee2fc60944f9eba24ff77b41e14e385f4540 Mon Sep 17 00:00:00 2001 From: David Szotten Date: Sun, 26 Jul 2015 01:28:00 +0200 Subject: [PATCH] fail if snap is removed in the future --- testing/test_capture.py | 1 + 1 file changed, 1 insertion(+) diff --git a/testing/test_capture.py b/testing/test_capture.py index 171a920d3..3c7105170 100644 --- a/testing/test_capture.py +++ b/testing/test_capture.py @@ -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(