[Python-checkins] r84309 - python/branches/py3k/Lib/test/test_sys.py
victor.stinner
python-checkins at python.org
Wed Aug 25 02:20:27 CEST 2010
Author: victor.stinner
Date: Wed Aug 25 02:20:27 2010
New Revision: 84309
Log:
Disable test_undecodable_code() of test_sys on Windows
This test is irrevelant on Windows
Modified:
python/branches/py3k/Lib/test/test_sys.py
Modified: python/branches/py3k/Lib/test/test_sys.py
==============================================================================
--- python/branches/py3k/Lib/test/test_sys.py (original)
+++ python/branches/py3k/Lib/test/test_sys.py Wed Aug 25 02:20:27 2010
@@ -495,6 +495,12 @@
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()
More information about the Python-checkins
mailing list