diff options
| author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-05-29 08:08:07 +0000 |
|---|---|---|
| committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-05-29 08:08:07 +0000 |
| commit | 3e3eace7d75b748254589b76970367588d320199 (patch) | |
| tree | 4cfda2793c52724e3a35f4d805918508f56078b5 /Lib/distutils/tests | |
| parent | 578a228ee265e9ce4d88c01f8d9fd57a237cfc3e (diff) | |
| download | cpython-git-3e3eace7d75b748254589b76970367588d320199.tar.gz | |
Fixed #6131: test_modulefinder leaked when run after test_distutils
Diffstat (limited to 'Lib/distutils/tests')
| -rw-r--r-- | Lib/distutils/tests/test_bdist_dumb.py | 6 | ||||
| -rw-r--r-- | Lib/distutils/tests/test_dir_util.py | 4 | ||||
| -rw-r--r-- | Lib/distutils/tests/test_file_util.py | 4 | ||||
| -rw-r--r-- | Lib/distutils/tests/test_register.py | 4 |
4 files changed, 8 insertions, 10 deletions
diff --git a/Lib/distutils/tests/test_bdist_dumb.py b/Lib/distutils/tests/test_bdist_dumb.py index 2863b620db..d2ea201bd4 100644 --- a/Lib/distutils/tests/test_bdist_dumb.py +++ b/Lib/distutils/tests/test_bdist_dumb.py @@ -22,16 +22,14 @@ class BuildDumbTestCase(support.TempdirManager, unittest.TestCase): def setUp(self): - support.TempdirManager.setUp(self) - support.LoggingSilencer.setUp(self) + super(BuildDumbTestCase, self).setUp() self.old_location = os.getcwd() self.old_sys_argv = sys.argv[:] def tearDown(self): os.chdir(self.old_location) sys.argv = self.old_sys_argv[:] - support.LoggingSilencer.tearDown(self) - support.TempdirManager.tearDown(self) + super(BuildDumbTestCase, self).tearDown() def test_simple_built(self): diff --git a/Lib/distutils/tests/test_dir_util.py b/Lib/distutils/tests/test_dir_util.py index 6b22f05ff0..0f694aa020 100644 --- a/Lib/distutils/tests/test_dir_util.py +++ b/Lib/distutils/tests/test_dir_util.py @@ -18,7 +18,7 @@ class DirUtilTestCase(support.TempdirManager, unittest.TestCase): self._logs.append(msg) def setUp(self): - support.TempdirManager.setUp(self) + super(DirUtilTestCase, self).setUp() self._logs = [] tmp_dir = self.mkdtemp() self.root_target = os.path.join(tmp_dir, 'deep') @@ -29,7 +29,7 @@ class DirUtilTestCase(support.TempdirManager, unittest.TestCase): def tearDown(self): log.info = self.old_log - support.TempdirManager.tearDown(self) + super(DirUtilTestCase, self).tearDown() def test_mkpath_remove_tree_verbosity(self): diff --git a/Lib/distutils/tests/test_file_util.py b/Lib/distutils/tests/test_file_util.py index 9373af8503..fac4a5d1a9 100644 --- a/Lib/distutils/tests/test_file_util.py +++ b/Lib/distutils/tests/test_file_util.py @@ -16,7 +16,7 @@ class FileUtilTestCase(support.TempdirManager, unittest.TestCase): self._logs.append(msg) def setUp(self): - support.TempdirManager.setUp(self) + super(FileUtilTestCase, self).setUp() self._logs = [] self.old_log = log.info log.info = self._log @@ -27,7 +27,7 @@ class FileUtilTestCase(support.TempdirManager, unittest.TestCase): def tearDown(self): log.info = self.old_log - support.TempdirManager.tearDown(self) + super(FileUtilTestCase, self).tearDown() def test_move_file_verbosity(self): f = open(self.source, 'w') diff --git a/Lib/distutils/tests/test_register.py b/Lib/distutils/tests/test_register.py index 91d3581373..0c6bf66989 100644 --- a/Lib/distutils/tests/test_register.py +++ b/Lib/distutils/tests/test_register.py @@ -66,7 +66,7 @@ class FakeOpener(object): class RegisterTestCase(PyPIRCCommandTestCase): def setUp(self): - PyPIRCCommandTestCase.setUp(self) + super(RegisterTestCase, self).setUp() # patching the password prompt self._old_getpass = getpass.getpass def _getpass(prompt): @@ -78,7 +78,7 @@ class RegisterTestCase(PyPIRCCommandTestCase): def tearDown(self): getpass.getpass = self._old_getpass urllib2.build_opener = self.old_opener - PyPIRCCommandTestCase.tearDown(self) + super(RegisterTestCase, self).tearDown() def _get_cmd(self, metadata=None): if metadata is None: |
