diff options
author | Martin Panter <vadmium+py@gmail.com> | 2017-01-23 22:11:09 +0000 |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2017-01-23 22:11:09 +0000 |
commit | b1b985da12465a4c5488c7543ffb743f49d3650f (patch) | |
tree | 8289fd1cb08026ebcb0494adf0b58af7ae0b2df5 | |
parent | 3a1042567c887b7a995a8f921f50acba2761310c (diff) | |
download | cpython-git-b1b985da12465a4c5488c7543ffb743f49d3650f.tar.gz |
Issue #29273: Remove unneeded workaround to restore locale
The “readline” module already has a workaround using setlocale(LC_CTYPE,
NULL). The code in test___all__ calls getlocale(), which can subtly alter
the locale string and cause the test framework to complain.
-rw-r--r-- | Lib/test/test___all__.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py index e94d984f2b..2fc5e3e374 100644 --- a/Lib/test/test___all__.py +++ b/Lib/test/test___all__.py @@ -70,17 +70,6 @@ class AllTest(unittest.TestCase): # than an AttributeError somewhere deep in CGIHTTPServer. import _socket - # rlcompleter needs special consideration; it import readline which - # initializes GNU readline which calls setlocale(LC_CTYPE, "")... :-( - import locale - locale_tuple = locale.getlocale(locale.LC_CTYPE) - try: - import rlcompleter - except ImportError: - pass - finally: - locale.setlocale(locale.LC_CTYPE, locale_tuple) - ignored = [] failed_imports = [] lib_dir = os.path.dirname(os.path.dirname(__file__)) |