summaryrefslogtreecommitdiff
path: root/coverage/test_helpers.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-02-09 10:55:46 -0500
committerNed Batchelder <ned@nedbatchelder.com>2015-02-09 10:55:46 -0500
commit29e89f42905d3867932261ccf2b2ac040784b94e (patch)
treed4128b194594d990ae50c5211908eaa8985b3c37 /coverage/test_helpers.py
parentfcb86086705f885480e89f9b28b0dc6ee58d6657 (diff)
downloadpython-coveragepy-29e89f42905d3867932261ccf2b2ac040784b94e.tar.gz
Remove (most) tearDown functions in favor of addCleanup
Diffstat (limited to 'coverage/test_helpers.py')
-rw-r--r--coverage/test_helpers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/test_helpers.py b/coverage/test_helpers.py
index e9ad377..55a67a0 100644
--- a/coverage/test_helpers.py
+++ b/coverage/test_helpers.py
@@ -45,7 +45,7 @@ class ModuleAwareMixin(TestCase):
def setUp(self):
super(ModuleAwareMixin, self).setUp()
- # Record sys.modules here so we can restore it in tearDown.
+ # Record sys.modules here so we can restore it in cleanup_modules.
self.old_modules = dict(sys.modules)
self.addCleanup(self.cleanup_modules)
@@ -88,7 +88,7 @@ class EnvironmentAwareMixin(TestCase):
"""Set an environment variable `name` to be `value`.
The environment variable is set, and record is kept that it was set,
- so that `tearDown` can restore its original value.
+ so that `cleanup_environ` can restore its original value.
"""
if name not in self.environ_undos: