]> granicus.if.org Git - python/commitdiff
apparently this test should be gated, too
authorBenjamin Peterson <benjamin@python.org>
Wed, 25 Aug 2010 17:57:04 +0000 (17:57 +0000)
committerBenjamin Peterson <benjamin@python.org>
Wed, 25 Aug 2010 17:57:04 +0000 (17:57 +0000)
Lib/ctypes/test/test_parameters.py

index 391c4eaf15e07c2e4caaa1e03822e3449e31bde8..75ec4767e446977b148e6440e2f6533d48be41b0 100644 (file)
@@ -78,10 +78,9 @@ class SimpleTypesTestCase(unittest.TestCase):
             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"))