[Python-checkins] r85750 - in python/branches/issue4388/Lib/test: regrtest.py test_cmd_line.py
victor.stinner
python-checkins at python.org
Wed Oct 20 18:12:19 CEST 2010
Author: victor.stinner
Date: Wed Oct 20 18:12:18 2010
New Revision: 85750
Log:
test_cmd_line: test with LANG=C
Modified:
python/branches/issue4388/Lib/test/regrtest.py
python/branches/issue4388/Lib/test/test_cmd_line.py
Modified: python/branches/issue4388/Lib/test/regrtest.py
==============================================================================
--- python/branches/issue4388/Lib/test/regrtest.py (original)
+++ python/branches/issue4388/Lib/test/regrtest.py Wed Oct 20 18:12:18 2010
@@ -253,6 +253,8 @@
replace_stdout()
+ tests = ['test_cmd_line', 'test_pydoc', 'test_sys', 'test_os']
+
support.record_original_stdout(sys.stdout)
try:
opts, args = getopt.getopt(sys.argv[1:], 'hvqxsSrf:lu:t:TD:NLR:FwWM:nj:',
Modified: python/branches/issue4388/Lib/test/test_cmd_line.py
==============================================================================
--- python/branches/issue4388/Lib/test/test_cmd_line.py (original)
+++ python/branches/issue4388/Lib/test/test_cmd_line.py Wed Oct 20 18:12:18 2010
@@ -107,10 +107,7 @@
% (locale.getpreferredencoding(), sys.getfilesystemencoding()))
env = os.environ.copy()
for key in ('LC_ALL', 'LC_CTYPE', 'LANG'):
- try:
- del env[key]
- except KeyError:
- pass
+ env[key] = 'C'
command = "assert(ord('\xe9') == 0xe9)"
assert_python_ok('-c', command, env=env)
More information about the Python-checkins
mailing list