summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2012-06-24 07:27:43 (GMT)
committerÉric Araujo <merwok@netwok.org>2012-06-24 07:27:43 (GMT)
commitec177c14d326a06204f0922bc61565b60589ba82 (patch)
treea4d0ed1a9eb3e468df71174829c5a4425bf0f9d5 /Lib/test/regrtest.py
parent853ef475228e6fb9683209b361878e8f610e3762 (diff)
downloadcpython-ec177c14d326a06204f0922bc61565b60589ba82.zip
cpython-ec177c14d326a06204f0922bc61565b60589ba82.tar.gz
cpython-ec177c14d326a06204f0922bc61565b60589ba82.tar.bz2
Packaging removal: also revert introduction of sysconfig.cfg.
We need a discussion to define what should be customized how; this new config file is premature. It was added to serve the needs of the resources system in install_data / packaging.database, so it can be removed alongside packaging for 3.3.
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-xLib/test/regrtest.py18
1 files changed, 8 insertions, 10 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index f528e63..90931e7 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -966,7 +966,7 @@ class saved_test_environment:
'logging._handlers', 'logging._handlerList', 'sys.gettrace',
'sys.warnoptions', 'threading._dangling',
'multiprocessing.process._dangling',
- 'sysconfig._CONFIG_VARS', 'sysconfig._SCHEMES',
+ 'sysconfig._CONFIG_VARS', 'sysconfig._INSTALL_SCHEMES',
'support.TESTFN',
)
@@ -1113,15 +1113,13 @@ class saved_test_environment:
sysconfig._CONFIG_VARS.clear()
sysconfig._CONFIG_VARS.update(saved[2])
- def get_sysconfig__SCHEMES(self):
- # it's mildly evil to look at the internal attribute, but it's easier
- # than copying a RawConfigParser object
- return (id(sysconfig._SCHEMES), sysconfig._SCHEMES._sections,
- sysconfig._SCHEMES._sections.copy())
- def restore_sysconfig__SCHEMES(self, saved):
- sysconfig._SCHEMES._sections = saved[1]
- sysconfig._SCHEMES._sections.clear()
- sysconfig._SCHEMES._sections.update(saved[2])
+ def get_sysconfig__INSTALL_SCHEMES(self):
+ return (id(sysconfig._INSTALL_SCHEMES), sysconfig._INSTALL_SCHEMES,
+ sysconfig._INSTALL_SCHEMES.copy())
+ def restore_sysconfig__INSTALL_SCHEMES(self, saved):
+ sysconfig._INSTALL_SCHEMES = saved[1]
+ sysconfig._INSTALL_SCHEMES.clear()
+ sysconfig._INSTALL_SCHEMES.update(saved[2])
def get_support_TESTFN(self):
if os.path.isfile(support.TESTFN):