Commit 39d98897 authored by Tarek Ziadé's avatar Tarek Ziadé

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
........
parent a97cd0de
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment