diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-04-20 12:18:08 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-04-20 12:18:08 (GMT) |
commit | 7d3a62629f8a84c4944c978e24ec6ebbec2b0678 (patch) | |
tree | 1b7b5a1d46bb6beda148b489af5e856d072edc59 /Lib/distutils | |
parent | fd838e6c8462d5feecf949a271419d13bbc0d32c (diff) | |
download | cpython-7d3a62629f8a84c4944c978e24ec6ebbec2b0678.zip cpython-7d3a62629f8a84c4944c978e24ec6ebbec2b0678.tar.gz cpython-7d3a62629f8a84c4944c978e24ec6ebbec2b0678.tar.bz2 |
Merged revisions 71758 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71758 | tarek.ziade | 2009-04-20 09:53:55 +0200 (Mon, 20 Apr 2009) | 1 line
#5795 sysconfig._config_vars was shadowed in tearDown
........
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/tests/test_util.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/distutils/tests/test_util.py b/Lib/distutils/tests/test_util.py index f27c452..29be0cf 100644 --- a/Lib/distutils/tests/test_util.py +++ b/Lib/distutils/tests/test_util.py @@ -18,7 +18,8 @@ from distutils.util import strtobool from distutils.util import rfc822_escape from distutils import util # used to patch _environ_checked -from distutils.sysconfig import get_config_vars, _config_vars +from distutils.sysconfig import get_config_vars +from distutils import sysconfig class utilTestCase(unittest.TestCase): @@ -32,7 +33,7 @@ class utilTestCase(unittest.TestCase): self.join = os.path.join self.isabs = os.path.isabs self.splitdrive = os.path.splitdrive - self._config_vars = copy(_config_vars) + self._config_vars = copy(sysconfig._config_vars) # patching os.uname if hasattr(os, 'uname'): @@ -58,7 +59,7 @@ class utilTestCase(unittest.TestCase): os.uname = self.uname else: del os.uname - _config_vars = copy(self._config_vars) + sysconfig._config_vars = copy(self._config_vars) def _set_uname(self, uname): self._uname = uname |