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

(it is about parsing the python command line arguments, not about subprocess)
This commit is contained in:
Amaury Forgeot d'Arc 2008-11-12 00:59:11 +00:00
parent f4b27124d2
commit e25576467b

View file

@ -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():