Add some debug output in verbose mode

This commit is contained in:
Antoine Pitrou 2010-10-08 18:46:09 +00:00
parent f51d8d3a2e
commit d7931095d5
1 changed files with 4 additions and 0 deletions

View File

@ -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)