Fixed #5316 : test failure in test_site
This commit is contained in:
parent
b646487687
commit
e3bc0eff25
|
@ -51,7 +51,7 @@ class PyPIRCCommandTestCase(support.TempdirManager, unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
"""Patches the environment."""
|
"""Patches the environment."""
|
||||||
support.TempdirManager.setUp(self)
|
super(PyPIRCCommandTestCase, self).setUp()
|
||||||
|
|
||||||
if os.environ.has_key('HOME'):
|
if os.environ.has_key('HOME'):
|
||||||
self._old_home = os.environ['HOME']
|
self._old_home = os.environ['HOME']
|
||||||
|
@ -79,7 +79,7 @@ class PyPIRCCommandTestCase(support.TempdirManager, unittest.TestCase):
|
||||||
else:
|
else:
|
||||||
os.environ['HOME'] = self._old_home
|
os.environ['HOME'] = self._old_home
|
||||||
set_threshold(self.old_threshold)
|
set_threshold(self.old_threshold)
|
||||||
support.TempdirManager.tearDown(self)
|
super(PyPIRCCommandTestCase, self).tearDown()
|
||||||
|
|
||||||
def test_server_registration(self):
|
def test_server_registration(self):
|
||||||
# This test makes sure PyPIRCCommand knows how to:
|
# This test makes sure PyPIRCCommand knows how to:
|
||||||
|
|
|
@ -37,10 +37,9 @@ somecode%(sep)sdoc.txt
|
||||||
class sdistTestCase(support.LoggingSilencer, PyPIRCCommandTestCase):
|
class sdistTestCase(support.LoggingSilencer, PyPIRCCommandTestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
support.LoggingSilencer.setUp(self)
|
|
||||||
# PyPIRCCommandTestCase creates a temp dir already
|
# PyPIRCCommandTestCase creates a temp dir already
|
||||||
# and put it in self.tmp_dir
|
# and put it in self.tmp_dir
|
||||||
PyPIRCCommandTestCase.setUp(self)
|
super(sdistTestCase, self).setUp()
|
||||||
# setting up an environment
|
# setting up an environment
|
||||||
self.old_path = os.getcwd()
|
self.old_path = os.getcwd()
|
||||||
os.mkdir(join(self.tmp_dir, 'somecode'))
|
os.mkdir(join(self.tmp_dir, 'somecode'))
|
||||||
|
@ -54,8 +53,7 @@ class sdistTestCase(support.LoggingSilencer, PyPIRCCommandTestCase):
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
# back to normal
|
# back to normal
|
||||||
os.chdir(self.old_path)
|
os.chdir(self.old_path)
|
||||||
PyPIRCCommandTestCase.tearDown(self)
|
super(sdistTestCase, self).tearDown()
|
||||||
support.LoggingSilencer.tearDown(self)
|
|
||||||
|
|
||||||
def get_cmd(self, metadata=None):
|
def get_cmd(self, metadata=None):
|
||||||
"""Returns a cmd"""
|
"""Returns a cmd"""
|
||||||
|
|
|
@ -165,6 +165,9 @@ Core and Builtins
|
||||||
|
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
- Issue #5316: Fixed buildbot failures introduced by multiple inheritance
|
||||||
|
in Distutils tests.
|
||||||
|
|
||||||
- Issue #5287: Add exception handling around findCaller() call to help out
|
- Issue #5287: Add exception handling around findCaller() call to help out
|
||||||
IronPython.
|
IronPython.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue