[Python-checkins] python/dist/src/Lib/test string_tests.py,1.15,1.16
mwh@sourceforge.net
mwh@sourceforge.net
Mon, 20 May 2002 07:48:18 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv22261/test
Modified Files:
string_tests.py
Log Message:
More --disable-unicode stuff.
I'm getting better at vi!
Index: string_tests.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/string_tests.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** string_tests.py 22 Apr 2002 17:42:37 -0000 1.15
--- string_tests.py 20 May 2002 14:48:16 -0000 1.16
***************
*** 177,184 ****
# strip/lstrip/rstrip with unicode arg
! test('strip', 'xyzzyhelloxyzzy', u'hello', u'xyz')
! test('lstrip', 'xyzzyhelloxyzzy', u'helloxyzzy', u'xyz')
! test('rstrip', 'xyzzyhelloxyzzy', u'xyzzyhello', u'xyz')
! test('strip', 'hello', u'hello', u'xyz')
test('swapcase', 'HeLLo cOmpUteRs', 'hEllO CoMPuTErS')
--- 177,189 ----
# strip/lstrip/rstrip with unicode arg
! if have_unicode:
! test('strip', 'xyzzyhelloxyzzy',
! unicode('hello', 'ascii'), unicode('xyz', 'ascii'))
! test('lstrip', 'xyzzyhelloxyzzy',
! unicode('helloxyzzy', 'ascii'), unicode('xyz', 'ascii'))
! test('rstrip', 'xyzzyhelloxyzzy',
! unicode('xyzzyhello', 'ascii'), unicode('xyz', 'ascii'))
! test('strip', 'hello',
! unicode('hello', 'ascii'), unicode('xyz', 'ascii'))
test('swapcase', 'HeLLo cOmpUteRs', 'hEllO CoMPuTErS')