Kaydet (Commit) 8b23f5cc authored tarafından Ezio Melotti's avatar Ezio Melotti

#22751: fix test___all__ warning about modified environment in the tests. Patch…

#22751: fix test___all__ warning about modified environment in the tests.  Patch by Michael Cetrulo.
üst 4b2b1de0
......@@ -72,13 +72,14 @@ class AllTest(unittest.TestCase):
# 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
import locale
except ImportError:
pass
else:
locale.setlocale(locale.LC_CTYPE, 'C')
finally:
locale.setlocale(locale.LC_CTYPE, locale_tuple)
ignored = []
failed_imports = []
......
......@@ -222,6 +222,7 @@ Per Cederqvist
Matej Cepl
Carl Cerecke
Octavian Cerna
Michael Cetrulo
Dave Chambers
Pascal Chambon
John Chandler
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment