mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
Disable test_undecodable_code() of test_sys on Windows
This test is irrevelant on Windows
This commit is contained in:
parent
ebe53a23c9
commit
1970b62aee
1 changed files with 6 additions and 0 deletions
|
|
@ -495,6 +495,12 @@ class SysModuleTest(unittest.TestCase):
|
||||||
|
|
||||||
self.assertRaises(TypeError, sys.intern, S("abc"))
|
self.assertRaises(TypeError, sys.intern, S("abc"))
|
||||||
|
|
||||||
|
# On Windows, pass bytes to subprocess doesn't test how Python decodes the
|
||||||
|
# command line, but how subprocess does decode bytes to unicode. Python
|
||||||
|
# doesn't decode the command line because Windows provides directly the
|
||||||
|
# arguments as unicode (using wmain() instead of main()).
|
||||||
|
@unittest.skipIf(sys.platform == 'win32',
|
||||||
|
'Windows has a native unicode API')
|
||||||
def test_undecodable_code(self):
|
def test_undecodable_code(self):
|
||||||
# Raise SkipTest() if sys.executable is not encodable to ascii
|
# Raise SkipTest() if sys.executable is not encodable to ascii
|
||||||
test.support.workaroundIssue8611()
|
test.support.workaroundIssue8611()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue