[Patches] [ python-Patches-555382 ] test_array v.s. --disable-unicode
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 14 May 2002 15:19:01 -0700
Patches item #555382, was opened at 2002-05-13 12: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: Open
>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: Martin v. Löwis (loewis)
Date: 2002-05-15 00: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