summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test.py b/test.py
index 4f3c39b..43b0a7b 100755
--- a/test.py
+++ b/test.py
@@ -3947,6 +3947,8 @@ class PatcherTest(TestCase):
self.mocker.replay()
self.assertEquals(self.C().method(), "mocked")
self.assertRaises(AssertionError, self.C().method)
+ self.mocker.restore()
+ self.assertEquals(getattr(self.C, "__mocker_mock__", None), None)
def test_recorder_instance_getattr(self):
self.C.attr = "original"