diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index ae252b2a05f..f7e8f2418b6 100644 --- a/Lib/test/test_cmd_line.py +++ b/Lib/test/test_cmd_line.py @@ -101,6 +101,10 @@ def test_run_code(self): # 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)