summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-08-08 18:09:21 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-08-08 18:09:21 (GMT)
commit8d4734f6b20827d369021b7cbdd36f719d41e601 (patch)
treefe6625da45fb61d272d6fe518a108ce3b8c973ad /Lib
parent3277b35183ba48f7469484c9e6e09cc1bd46aa7d (diff)
downloadcpython-8d4734f6b20827d369021b7cbdd36f719d41e601.zip
cpython-8d4734f6b20827d369021b7cbdd36f719d41e601.tar.gz
cpython-8d4734f6b20827d369021b7cbdd36f719d41e601.tar.bz2
Issue #13072: Fix test_array for Windows with 16-bit wchar_t
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/test_array.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py
index 9385339..cbadba9 100755
--- a/Lib/test/test_array.py
+++ b/Lib/test/test_array.py
@@ -1029,7 +1029,7 @@ class UnicodeTest(StringTest):
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')
@@ -1041,7 +1041,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, 4)
+ self.assertEqual(a.itemsize, 2)
s = '\x00="\'a\\b\x80\xff\u0000\u0001\u1234'
a = array.array('u', s)