From c241ca7e844eafc5f06bdac8852c8b026cfa0c83 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 9 Feb 2015 10:55:46 -0500 Subject: Remove (most) tearDown functions in favor of addCleanup --- coverage/test_helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coverage/test_helpers.py') 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: -- cgit v1.2.1