diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-09 10:55:46 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-09 10:55:46 -0500 |
commit | c241ca7e844eafc5f06bdac8852c8b026cfa0c83 (patch) | |
tree | f9e0c65d7f0c41ddb2bba46bd4ebc9aaffbd07b0 /coverage/test_helpers.py | |
parent | 3f5d571b0146531ceae5c57ed15fafaca3202be7 (diff) | |
download | python-coveragepy-git-c241ca7e844eafc5f06bdac8852c8b026cfa0c83.tar.gz |
Remove (most) tearDown functions in favor of addCleanup
Diffstat (limited to 'coverage/test_helpers.py')
-rw-r--r-- | coverage/test_helpers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/test_helpers.py b/coverage/test_helpers.py index e9ad377a..55a67a0c 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: |