1. python_mirrors
  2. cpython

Commits

Victor Stinner  committed 67a994d Draft

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

  • Participants
  • Parent commits e0f3406
  • Branches default

Comments (0)

Files changed (1)

File Lib/test/test_array.py

View file
  • Ignore whitespace
    Roger E. Masse
 """
 
+import ctypes
 import unittest
 from test import support
 import weakref
         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)