diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2013-04-01 16:54:45 (GMT) |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-04-01 16:54:45 (GMT) |
| commit | 7d197de987ff97de90a855c933de0e1ed8deb4fb (patch) | |
| tree | f4946f5c0ae933861b97615902622c3a151a8ede /Lib/test/regrtest.py | |
| parent | 2d556f56db942364ceca2bc19630db56f75e302f (diff) | |
| download | cpython-7d197de987ff97de90a855c933de0e1ed8deb4fb.zip cpython-7d197de987ff97de90a855c933de0e1ed8deb4fb.tar.gz cpython-7d197de987ff97de90a855c933de0e1ed8deb4fb.tar.bz2 | |
Backed out changeset 4fcd50a6dca7 as it totally breaks the test suite here.
Diffstat (limited to 'Lib/test/regrtest.py')
| -rwxr-xr-x | Lib/test/regrtest.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 4f74780..45b4541 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -127,7 +127,6 @@ import builtins import faulthandler import io import json -import locale import logging import os import platform @@ -1062,7 +1061,7 @@ class saved_test_environment: 'sys.warnoptions', 'threading._dangling', 'multiprocessing.process._dangling', 'sysconfig._CONFIG_VARS', 'sysconfig._INSTALL_SCHEMES', - 'support.TESTFN', 'locale' + 'support.TESTFN', ) def get_sys_argv(self): @@ -1231,14 +1230,6 @@ class saved_test_environment: elif os.path.isdir(support.TESTFN): shutil.rmtree(support.TESTFN) - _locale_categories = [getattr(locale, lc) - for lc in dir(locale) if lc.startswith('LC_')] - def get_locale(self): - return tuple(map(locale.getlocale, self._locale_categories)) - def restore_locale(self, saved): - for category, setting in zip(self._locale_categories, saved): - locale.setlocale(category, setting) - def resource_info(self): for name in self.resources: method_suffix = name.replace('.', '_') |
