Skip to content

Commit 1970b62

Browse files
author
Victor Stinner
committed
Disable test_undecodable_code() of test_sys on Windows
This test is irrevelant on Windows
1 parent ebe53a2 commit 1970b62

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/test/test_sys.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,12 @@ def __hash__(self):
495495

496496
self.assertRaises(TypeError, sys.intern, S("abc"))
497497

498+
# On Windows, pass bytes to subprocess doesn't test how Python decodes the
499+
# command line, but how subprocess does decode bytes to unicode. Python
500+
# doesn't decode the command line because Windows provides directly the
501+
# arguments as unicode (using wmain() instead of main()).
502+
@unittest.skipIf(sys.platform == 'win32',
503+
'Windows has a native unicode API')
498504
def test_undecodable_code(self):
499505
# Raise SkipTest() if sys.executable is not encodable to ascii
500506
test.support.workaroundIssue8611()

0 commit comments

Comments
 (0)