diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-08 18:46:09 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-08 18:46:09 (GMT) |
commit | d7931095d57b47e48858143dcc174aa17b6dd0b6 (patch) | |
tree | a5030a82696f2464c4a4a072787235858da54504 /Lib/test/test_cmd_line.py | |
parent | f51d8d3a2ede7ff3330e2a868feb4ecdda0b92c0 (diff) | |
download | cpython-d7931095d57b47e48858143dcc174aa17b6dd0b6.zip cpython-d7931095d57b47e48858143dcc174aa17b6dd0b6.tar.gz cpython-d7931095d57b47e48858143dcc174aa17b6dd0b6.tar.bz2 |
Add some debug output in verbose mode
Diffstat (limited to 'Lib/test/test_cmd_line.py')
-rw-r--r-- | Lib/test/test_cmd_line.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index ae252b2..f7e8f24 100644 --- a/Lib/test/test_cmd_line.py +++ b/Lib/test/test_cmd_line.py @@ -101,6 +101,10 @@ class CmdLineTest(unittest.TestCase): # Test handling of non-ascii data if sys.getfilesystemencoding() != 'ascii': + if test.support.verbose: + import locale + print('locale encoding = %s, filesystem encoding = %s' + % (locale.getpreferredencoding(), sys.getfilesystemencoding())) command = "assert(ord('\xe9') == 0xe9)" assert_python_ok('-c', command) |