From: Victor Stinner Date: Wed, 25 Aug 2010 00:20:27 +0000 (+0000) Subject: Disable test_undecodable_code() of test_sys on Windows X-Git-Tag: v3.2a2~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1970b62aee9ccedd83dea0df57bf0e0e63861cbe;p=python Disable test_undecodable_code() of test_sys on Windows This test is irrevelant on Windows --- diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index dcd36bee31..ee8df4d680 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -495,6 +495,12 @@ class SysModuleTest(unittest.TestCase): 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): # Raise SkipTest() if sys.executable is not encodable to ascii test.support.workaroundIssue8611()