[Patches] [ python-Patches-555382 ] test_array v.s. --disable-unicode
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 15 May 2002 06:06:28 -0700
Patches item #555382, was opened at 2002-05-13 10:19
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=555382&group_id=5470
Category: Tests
Group: Python 2.3
>Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Michael Hudson (mwh)
Assigned to: Michael Hudson (mwh)
Summary: test_array v.s. --disable-unicode
Initial Comment:
This patch makes test_array work in --disable-unicode
builds.
It wasn't a lot of fun to do, but the arraymodule was
broken under these builds, so I wanted to get the test
working.
This mainly consisted of lots of
s/u'foo'/unicode('foo', 'unicode-escape') and some
judicious testing of test_support.have_unicode.
This is very very far from being the only test which
fails without unicode literals, but it's a start...
----------------------------------------------------------------------
Comment By: Michael Hudson (mwh)
Date: 2002-05-15 13:06
Message:
Logged In: YES
user_id=6656
Fair enough (I always forget about raw strings).
Committed as revision 1.15 of Lib/test/test_array.py
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2002-05-14 22:19
Message:
Logged In: YES
user_id=21627
The patch looks good to me, but I would
a) use "ascii" as the encoding if there are no escapes, and
b) use raw strings
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=555382&group_id=5470