diff Lib/test/test_array.py @ 73120:98c0265cf7b9

Remove mention of narrow/wide builds and update array doc, add a test.
author Ezio Melotti <ezio.melotti@gmail.com>
date Tue, 25 Oct 2011 10:05:34 +0300
parents 7fa098f6dc6a
children 4ff234337e24
line wrap: on
line diff
--- a/Lib/test/test_array.py	Tue Oct 25 09:42:01 2011 +0300
+++ b/Lib/test/test_array.py	Tue Oct 25 10:05:34 2011 +0300
@@ -1015,7 +1015,7 @@
     smallerexample = '\x01\u263a\x00\ufefe'
     biggerexample = '\x01\u263a\x01\ufeff'
     outside = str('\x33')
-    minitemsize = 2
+    minitemsize = 4
 
     def test_unicode(self):
         self.assertRaises(TypeError, array.array, 'b', 'foo')
@@ -1027,6 +1027,7 @@
         a.fromunicode('\x11abc\xff\u1234')
         s = a.tounicode()
         self.assertEqual(s, '\xa0\xc2\u1234 \x11abc\xff\u1234')
+        self.assertEqual(a.itemsize, 4)
 
         s = '\x00="\'a\\b\x80\xff\u0000\u0001\u1234'
         a = array.array('u', s)