From e25576467b37c78aac4b350b8f1561b64634e613 Mon Sep 17 00:00:00 2001 From: Amaury Forgeot d'Arc Date: Wed, 12 Nov 2008 00:59:11 +0000 Subject: [PATCH] Enable this test only when subprocess supports non-ascii arguments. (it is about parsing the python command line arguments, not about subprocess) --- Lib/test/test_cmd_line.py | 11 +++++------ 1 file 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(): -- 2.40.0