summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sysconfig.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-01-04 16:12:14 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-01-04 16:12:14 (GMT)
commitd710d147f6a265d6415262d17fed0f61660c3a12 (patch)
tree2f4961d5e24ba54dbb721df703072050c8ed67d6 /Lib/test/test_sysconfig.py
parenta599489e91270ce35735d6df61e52f0f60a5c07e (diff)
downloadcpython-d710d147f6a265d6415262d17fed0f61660c3a12.zip
cpython-d710d147f6a265d6415262d17fed0f61660c3a12.tar.gz
cpython-d710d147f6a265d6415262d17fed0f61660c3a12.tar.bz2
convince regrtest.py we aren't modifying _CONFIG_VARS
Diffstat (limited to 'Lib/test/test_sysconfig.py')
-rw-r--r--Lib/test/test_sysconfig.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
index 8058d0e..a2e6fbc 100644
--- a/Lib/test/test_sysconfig.py
+++ b/Lib/test/test_sysconfig.py
@@ -36,7 +36,8 @@ class TestSysConfig(unittest.TestCase):
self.join = os.path.join
self.isabs = os.path.isabs
self.splitdrive = os.path.splitdrive
- self._config_vars = copy(sysconfig._CONFIG_VARS)
+ self._config_vars = sysconfig._CONFIG_VARS
+ sysconfig._CONFIG_VARS = copy(sysconfig._CONFIG_VARS)
self._added_envvars = []
self._changed_envvars = []
for var in ('MACOSX_DEPLOYMENT_TARGET', 'PATH'):
@@ -59,7 +60,7 @@ class TestSysConfig(unittest.TestCase):
os.path.join = self.join
os.path.isabs = self.isabs
os.path.splitdrive = self.splitdrive
- sysconfig._CONFIG_VARS = copy(self._config_vars)
+ sysconfig._CONFIG_VARS = self._config_vars
for var, value in self._changed_envvars:
os.environ[var] = value
for var in self._added_envvars: