diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-02-25 22:29:27 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-02-25 22:29:27 (GMT) |
commit | e3bc0eff256e5eda47a4190171db65ad5b9102db (patch) | |
tree | 636869a799a608fd1b4a75dbeead11e739dc74cd | |
parent | b6464876876d6cb2ce53c40ae33daa5a00d522a4 (diff) | |
download | cpython-e3bc0eff256e5eda47a4190171db65ad5b9102db.zip cpython-e3bc0eff256e5eda47a4190171db65ad5b9102db.tar.gz cpython-e3bc0eff256e5eda47a4190171db65ad5b9102db.tar.bz2 |
Fixed #5316 : test failure in test_site
-rw-r--r-- | Lib/distutils/tests/test_config.py | 4 | ||||
-rw-r--r-- | Lib/distutils/tests/test_sdist.py | 6 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
3 files changed, 7 insertions, 6 deletions
diff --git a/Lib/distutils/tests/test_config.py b/Lib/distutils/tests/test_config.py index d812769..a18f453 100644 --- a/Lib/distutils/tests/test_config.py +++ b/Lib/distutils/tests/test_config.py @@ -51,7 +51,7 @@ class PyPIRCCommandTestCase(support.TempdirManager, unittest.TestCase): def setUp(self): """Patches the environment.""" - support.TempdirManager.setUp(self) + super(PyPIRCCommandTestCase, self).setUp() if os.environ.has_key('HOME'): self._old_home = os.environ['HOME'] @@ -79,7 +79,7 @@ class PyPIRCCommandTestCase(support.TempdirManager, unittest.TestCase): else: os.environ['HOME'] = self._old_home set_threshold(self.old_threshold) - support.TempdirManager.tearDown(self) + super(PyPIRCCommandTestCase, self).tearDown() def test_server_registration(self): # This test makes sure PyPIRCCommand knows how to: diff --git a/Lib/distutils/tests/test_sdist.py b/Lib/distutils/tests/test_sdist.py index 9c579b4..15a8c80 100644 --- a/Lib/distutils/tests/test_sdist.py +++ b/Lib/distutils/tests/test_sdist.py @@ -37,10 +37,9 @@ somecode%(sep)sdoc.txt class sdistTestCase(support.LoggingSilencer, PyPIRCCommandTestCase): def setUp(self): - support.LoggingSilencer.setUp(self) # PyPIRCCommandTestCase creates a temp dir already # and put it in self.tmp_dir - PyPIRCCommandTestCase.setUp(self) + super(sdistTestCase, self).setUp() # setting up an environment self.old_path = os.getcwd() os.mkdir(join(self.tmp_dir, 'somecode')) @@ -54,8 +53,7 @@ class sdistTestCase(support.LoggingSilencer, PyPIRCCommandTestCase): def tearDown(self): # back to normal os.chdir(self.old_path) - PyPIRCCommandTestCase.tearDown(self) - support.LoggingSilencer.tearDown(self) + super(sdistTestCase, self).tearDown() def get_cmd(self, metadata=None): """Returns a cmd""" @@ -165,6 +165,9 @@ Core and Builtins Library ------- +- Issue #5316: Fixed buildbot failures introduced by multiple inheritance + in Distutils tests. + - Issue #5287: Add exception handling around findCaller() call to help out IronPython. |