[Python-checkins] r84316 - python/branches/py3k/Lib/ctypes/test/test_parameters.py

benjamin.peterson python-checkins at python.org
Wed Aug 25 19:57:04 CEST 2010


Author: benjamin.peterson
Date: Wed Aug 25 19:57:04 2010
New Revision: 84316

Log:
apparently this test should be gated, too

Modified:
   python/branches/py3k/Lib/ctypes/test/test_parameters.py

Modified: python/branches/py3k/Lib/ctypes/test/test_parameters.py
==============================================================================
--- python/branches/py3k/Lib/ctypes/test/test_parameters.py	(original)
+++ python/branches/py3k/Lib/ctypes/test/test_parameters.py	Wed Aug 25 19:57:04 2010
@@ -78,10 +78,9 @@
             unisize = 8 if sys.maxunicode == 1114111 else 4
             if unisize == sizeof(c_wchar):
                 self.assertIs(c_wchar_p.from_param(s)._obj, s)
+                # new in 0.9.1: convert (decode) ascii to unicode
+                self.assertEqual(c_wchar_p.from_param("123")._obj, "123")
             self.assertRaises(TypeError, c_wchar_p.from_param, 42)
-
-            # new in 0.9.1: convert (decode) ascii to unicode
-            self.assertEqual(c_wchar_p.from_param("123")._obj, "123")
         self.assertRaises(TypeError, c_wchar_p.from_param, b"123\377")
 
         pa = c_wchar_p.from_param(c_wchar_p("123"))


More information about the Python-checkins mailing list