cpython: e0f3406c43e4 (original) (raw)

Mercurial > cpython

changeset 78463:e0f3406c43e4

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

Victor Stinner victor.stinner@gmail.com
date Wed, 08 Aug 2012 20:09:21 +0200
parents 5966c206654b
children 67a994d5657d
files Lib/test/test_array.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-)[+] [-] Lib/test/test_array.py 4

line wrap: on

line diff

--- 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')

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')

s = '\x00="'a\b\x80\xff\u0000\u0001\u1234' a = array.array('u', s)