summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-08-25 17:57:04 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-08-25 17:57:04 (GMT)
commit6505ee84530beae41758d4ec9310c647149ac17f (patch)
tree101bb41da9746cc15f25103a9b3c9c1cd54739b6 /Lib
parentb35f64679615c3c167fb0d4ee04293dbff17c5e9 (diff)
downloadcpython-6505ee84530beae41758d4ec9310c647149ac17f.zip
cpython-6505ee84530beae41758d4ec9310c647149ac17f.tar.gz
cpython-6505ee84530beae41758d4ec9310c647149ac17f.tar.bz2
apparently this test should be gated, too
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ctypes/test/test_parameters.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/ctypes/test/test_parameters.py b/Lib/ctypes/test/test_parameters.py
index 391c4ea..75ec476 100644
--- a/Lib/ctypes/test/test_parameters.py
+++ b/Lib/ctypes/test/test_parameters.py
@@ -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"))