Commits

Anonymous committed dbe02e9

Add some debug output in verbose mode

Comments (0)

Files changed (1)

Lib/test/test_cmd_line.py

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