Add super() calls to setUp/tearDown that are missing them

Also, I replaced a number of tearDown methods with addCleanup instead.
And also remove some unneeded patch.stopall() calls.
This commit is contained in:
Ned Batchelder
2015-05-14 18:14:21 -04:00
parent b98d85fda0
commit 78e9445aa1
60 changed files with 69 additions and 40 deletions

View File

@@ -78,6 +78,7 @@ class MonkeyPatchTest(TestCase):
"""
Remember the current state, then reset
"""
super(MonkeyPatchTest, self).setUp()
self.was_patched = unpatch()
self.unpatch_all()
self.addCleanup(self.cleanup)