cpython: 37ed6eed0595 (original) (raw)
Mercurial > cpython
changeset 93348:37ed6eed0595 3.4
#22751: fix test___all__ warning about modified environment in the tests. Patch by Michael Cetrulo. [#22751]
Ezio Melotti ezio.melotti@gmail.com | |
---|---|
date | Sun, 02 Nov 2014 19:08:35 +0200 |
parents | b5e9bc4352e1 |
children | 3c030e4da7c6 a5dd8e89d4da |
files | Lib/test/test___all__.py Misc/ACKS |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-)[+] [-] Lib/test/test___all__.py 7 Misc/ACKS 1 |
line wrap: on
line diff
--- a/Lib/test/test___all__.py +++ b/Lib/test/test___all__.py @@ -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[](#l1.7)
locale_tuple = locale.getlocale(locale.LC_CTYPE)[](#l1.8) try:[](#l1.9) import rlcompleter[](#l1.10)
import locale[](#l1.11) except ImportError:[](#l1.12) pass[](#l1.13)
else:[](#l1.14)
locale.setlocale(locale.LC_CTYPE, 'C')[](#l1.15)
finally:[](#l1.16)
locale.setlocale(locale.LC_CTYPE, locale_tuple)[](#l1.17)
ignored = [] failed_imports = []
--- a/Misc/ACKS +++ b/Misc/ACKS @@ -222,6 +222,7 @@ Per Cederqvist Matej Cepl Carl Cerecke Octavian Cerna +Michael Cetrulo Dave Chambers Pascal Chambon John Chandler