[Python-checkins] r85754 - in python/branches/issue4388/Lib/test: regrtest.py test_cmd_line.py
victor.stinner
python-checkins at python.org
Wed Oct 20 18:33:01 CEST 2010
Author: victor.stinner
Date: Wed Oct 20 18:33:01 2010
New Revision: 85754
Log:
test without locale env vars with all tests
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:33:01 2010
@@ -253,7 +253,11 @@
replace_stdout()
- tests = ['test_cmd_line', 'test_pydoc', 'test_sys', 'test_os']
+ for key in ('LC_ALL', 'LC_CTYPE', 'LANG'):
+ try:
+ del os.environ[key]
+ except KeyError:
+ pass
support.record_original_stdout(sys.stdout)
try:
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:33:01 2010
@@ -106,11 +106,6 @@
print('locale encoding = %s, filesystem encoding = %s'
% (locale.getpreferredencoding(), sys.getfilesystemencoding()))
env = os.environ.copy()
- for key in ('LC_ALL', 'LC_CTYPE', 'LANG'):
- try:
- del env[key]
- except KeyError:
- pass
command = "assert(ord('\xe9') == 0xe9)"
assert_python_ok('-c', command, env=env)
More information about the Python-checkins
mailing list