summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-08-08 18:19:37 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-08-08 18:19:37 (GMT)
commitbded28c081fe405a382fbb6b246a55a0697cea45 (patch)
tree5c9a6e9d61decc3a7cfd0c1db0289f7b960ddb61 /Lib/test
parent8d4734f6b20827d369021b7cbdd36f719d41e601 (diff)
downloadcpython-bded28c081fe405a382fbb6b246a55a0697cea45.zip
cpython-bded28c081fe405a382fbb6b246a55a0697cea45.tar.gz
cpython-bded28c081fe405a382fbb6b246a55a0697cea45.tar.bz2
Issue #13072: Ooops, now fix test_array for Linux with 32-bit wchar_t...
Diffstat (limited to 'Lib/test')
-rwxr-xr-xLib/test/test_array.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py
index cbadba9..974e178 100755
--- a/Lib/test/test_array.py
+++ b/Lib/test/test_array.py
@@ -3,6 +3,7 @@
Roger E. Masse
"""
+import ctypes
import unittest
from test import support
import weakref
@@ -1041,7 +1042,7 @@ class UnicodeTest(StringTest):
a.fromunicode('\x11abc\xff\u1234')
s = a.tounicode()
self.assertEqual(s, '\xa0\xc2\u1234 \x11abc\xff\u1234')
- self.assertEqual(a.itemsize, 2)
+ self.assertEqual(a.itemsize, ctypes.sizeof(ctypes.c_wchar))
s = '\x00="\'a\\b\x80\xff\u0000\u0001\u1234'
a = array.array('u', s)