]> granicus.if.org Git - python/commitdiff
Fixed #5316 : test failure in test_site
authorTarek Ziadé <ziade.tarek@gmail.com>
Wed, 25 Feb 2009 22:29:27 +0000 (22:29 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Wed, 25 Feb 2009 22:29:27 +0000 (22:29 +0000)
Lib/distutils/tests/test_config.py
Lib/distutils/tests/test_sdist.py
Misc/NEWS

index d81276928ab6ceb4e630bb2788133a1cd9bd3947..a18f45359ac640a3a4413b0434622c766657dfc8 100644 (file)
@@ -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:
index 9c579b40cbff120c14758e825ad611b91aa27e81..15a8c8087c014da6d0c82254c1cc0a69f3916796 100644 (file)
@@ -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"""
index 778720302cd35d1df0f1ad4e2bd109eda853de6b..77fa4931f481c9fd45c2ef825863249b57047341 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.