Commits

Victor Stinner  committed e0f3406 Draft

Issue #13072: Fix test_array for Windows with 16-bit wchar_t

  • Participants
  • Parent commits 5966c20

Comments (0)

Files changed (1)

File Lib/test/test_array.py

     smallerexample = '\x01\u263a\x00\ufefe'
     biggerexample = '\x01\u263a\x01\ufeff'
     outside = str('\x33')
-    minitemsize = 4
+    minitemsize = 2
 
     def test_unicode(self):
         self.assertRaises(TypeError, array.array, 'b', 'foo')
         a.fromunicode('\x11abc\xff\u1234')
         s = a.tounicode()
         self.assertEqual(s, '\xa0\xc2\u1234 \x11abc\xff\u1234')
-        self.assertEqual(a.itemsize, 4)
+        self.assertEqual(a.itemsize, 2)
 
         s = '\x00="\'a\\b\x80\xff\u0000\u0001\u1234'
         a = array.array('u', s)