Commit e2557646 authored by Amaury Forgeot d'Arc's avatar Amaury Forgeot d'Arc

Enable this test only when subprocess supports non-ascii arguments.

(it is about parsing the python command line arguments, not about subprocess)
parent f4b27124
...@@ -136,12 +136,11 @@ class CmdLineTest(unittest.TestCase): ...@@ -136,12 +136,11 @@ class CmdLineTest(unittest.TestCase):
0) 0)
# Test handling of non-ascii data # Test handling of non-ascii data
if test.support.verbose: if sys.getfilesystemencoding() != 'ascii':
print("FileSystemEncoding:", sys.getfilesystemencoding()) command = "assert(ord('\xe9') == 0xe9)"
command = "assert(ord('\xe9') == 0xe9)" self.assertEqual(
self.assertEqual( self.exit_code('-c', command),
self.exit_code('-c', command), 0)
0)
def test_main(): def test_main():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment