[Python-checkins] cpython: Issue #13072: Fix test_array for Windows with 16-bit wchar_t
victor.stinner
python-checkins at python.org
Wed Aug 8 20:13:21 CEST 2012
http://hg.python.org/cpython/rev/e0f3406c43e4
changeset: 78463:e0f3406c43e4
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Aug 08 20:09:21 2012 +0200
summary:
Issue #13072: Fix test_array for Windows with 16-bit wchar_t
files:
Lib/test/test_array.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py
--- a/Lib/test/test_array.py
+++ b/Lib/test/test_array.py
@@ -1029,7 +1029,7 @@
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 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list