diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-01-04 16:12:14 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-01-04 16:12:14 (GMT) |
commit | d710d147f6a265d6415262d17fed0f61660c3a12 (patch) | |
tree | 2f4961d5e24ba54dbb721df703072050c8ed67d6 /Lib/test/test_sysconfig.py | |
parent | a599489e91270ce35735d6df61e52f0f60a5c07e (diff) | |
download | cpython-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.py | 5 |
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: |