[Python-checkins] CVS: python/dist/src/Lib/test string_tests.py,1.7,1.7.4.1
Thomas Wouters
twouters@users.sourceforge.net
Wed, 23 May 2001 06:36:39 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv8843/Lib/test
Modified Files:
Tag: release21-maint
string_tests.py
Log Message:
Index: string_tests.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/string_tests.py,v
retrieving revision 1.7
retrieving revision 1.7.4.1
diff -C2 -r1.7 -r1.7.4.1
*** string_tests.py 2001/02/09 11:43:35 1.7
--- string_tests.py 2001/05/23 13:36:37 1.7.4.1
***************
*** 178,181 ****
--- 178,187 ----
test('replace', 'one!two!three!', 'one!two!three!', 'x', '@')
test('replace', 'one!two!three!', 'one!two!three!', 'x', '@', 2)
+ # Next three for SF bug 422088: [OSF1 alpha] string.replace(); died with
+ # MemoryError due to empty result (platform malloc issue when requesting
+ # 0 bytes).
+ test('replace', '123', '', '123', '')
+ test('replace', '123123', '', '123', '')
+ test('replace', '123x123', 'x', '123', '')
test('startswith', 'hello', 1, 'he')