From: Amaury Forgeot d'Arc Date: Wed, 12 Nov 2008 00:59:11 +0000 (+0000) Subject: Enable this test only when subprocess supports non-ascii arguments. X-Git-Tag: v3.0rc3~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e25576467b37c78aac4b350b8f1561b64634e613;p=python Enable this test only when subprocess supports non-ascii arguments. (it is about parsing the python command line arguments, not about subprocess) --- 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():