diff options
-rw-r--r-- | Lib/test/test_cmd_line.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index 1277df3ffe..e8db7d07ae 100644 --- a/Lib/test/test_cmd_line.py +++ b/Lib/test/test_cmd_line.py @@ -136,12 +136,11 @@ class CmdLineTest(unittest.TestCase): 0) # Test handling of non-ascii data - if test.support.verbose: - print("FileSystemEncoding:", sys.getfilesystemencoding()) - command = "assert(ord('\xe9') == 0xe9)" - self.assertEqual( - self.exit_code('-c', command), - 0) + if sys.getfilesystemencoding() != 'ascii': + command = "assert(ord('\xe9') == 0xe9)" + self.assertEqual( + self.exit_code('-c', command), + 0) def test_main(): |