]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 69976 via svnmerge from
authorTarek Ziadé <ziade.tarek@gmail.com>
Wed, 25 Feb 2009 22:31:38 +0000 (22:31 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Wed, 25 Feb 2009 22:31:38 +0000 (22:31 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69976 | tarek.ziade | 2009-02-25 23:29:27 +0100 (Wed, 25 Feb 2009) | 1 line

  Fixed #5316 : test failure in test_site
........

Lib/distutils/tests/test_config.py
Lib/distutils/tests/test_sdist.py
Misc/NEWS

index 0df6af8412ec29235d1d89beb7e308c9c2330a53..09abfcd8ba0aa4608443b57252a25c60c9181e85 100644 (file)
@@ -50,7 +50,7 @@ class PyPIRCCommandTestCase(support.TempdirManager, unittest.TestCase):
 
     def setUp(self):
         """Patches the environment."""
-        support.TempdirManager.setUp(self)
+        super(PyPIRCCommandTestCase, self).setUp()
 
         if 'HOME' in os.environ:
             self._old_home = os.environ['HOME']
@@ -78,7 +78,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 09af442be7710b81a6fe3888e453628817a7873d..15c06996cea22c5bf44111e3b4db27737c7e6e37 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -172,6 +172,8 @@ 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.