diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-08-25 00:20:27 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-08-25 00:20:27 (GMT) |
commit | 1970b62aee9ccedd83dea0df57bf0e0e63861cbe (patch) | |
tree | 60d3b3d707248f133ea066e68651b3d914175f21 /Lib/test/test_sys.py | |
parent | ebe53a23c9edc8f01fa261f9ea8e358b1ad481a2 (diff) | |
download | cpython-1970b62aee9ccedd83dea0df57bf0e0e63861cbe.zip cpython-1970b62aee9ccedd83dea0df57bf0e0e63861cbe.tar.gz cpython-1970b62aee9ccedd83dea0df57bf0e0e63861cbe.tar.bz2 |
Disable test_undecodable_code() of test_sys on Windows
This test is irrevelant on Windows
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r-- | Lib/test/test_sys.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index dcd36be..ee8df4d 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() |