Issue #13072: Ooops, now fix test_array for Linux with 32-bit wchar_t...

This commit is contained in:
Victor Stinner 2012-08-08 20:19:37 +02:00
parent 8d4734f6b2
commit bded28c081
1 changed files with 2 additions and 1 deletions

View File

@ -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)