diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-10-25 07:05:34 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-10-25 07:05:34 (GMT) |
commit | 90bf5f11713bbb3cf484e49a5cd9f0faecd86212 (patch) | |
tree | 5c75191ff211dc01156294e4a88e71dc1aec540b /Lib/test/test_array.py | |
parent | 199786bddecbd856779b050b54c099f229deee3e (diff) | |
download | cpython-90bf5f11713bbb3cf484e49a5cd9f0faecd86212.zip cpython-90bf5f11713bbb3cf484e49a5cd9f0faecd86212.tar.gz cpython-90bf5f11713bbb3cf484e49a5cd9f0faecd86212.tar.bz2 |
Remove mention of narrow/wide builds and update array doc, add a test.
Diffstat (limited to 'Lib/test/test_array.py')
-rwxr-xr-x | Lib/test/test_array.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index fc17b42..434e495 100755 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -1015,7 +1015,7 @@ class UnicodeTest(StringTest): 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 @@ 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) s = '\x00="\'a\\b\x80\xff\u0000\u0001\u1234' a = array.array('u', s) |