]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add some debug output in verbose mode
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 8 Oct 2010 18:46:09 +0000 (18:46 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 8 Oct 2010 18:46:09 +0000 (18:46 +0000)
Lib/test/test_cmd_line.py

index ae252b2a05f3a268a2102a0aacc583eb3ea00a8f..f7e8f2418b607656ce0fe455b7548ad66f0fe029 100644 (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)