[Python-checkins] python/dist/src/Lib/test string_tests.py, 1.35, 1.36

perky at users.sourceforge.net perky at users.sourceforge.net
Tue Dec 23 04:10:18 EST 2003


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv26828/Lib/test

Modified Files:
	string_tests.py 
Log Message:
Fix unicode.rsplit()'s bug that ignores separater on the end of string when
using specialized splitter for 1 char sep.


Index: string_tests.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/string_tests.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** string_tests.py	15 Dec 2003 18:49:19 -0000	1.35
--- string_tests.py	23 Dec 2003 09:10:16 -0000	1.36
***************
*** 209,212 ****
--- 209,214 ----
          self.checkequal(['', ''], 'abcd', 'rsplit', 'abcd')
          self.checkequal([u'a b', u'c', u'd'], 'a b c d', 'rsplit', u' ', 2)
+         self.checkequal(['', ' endcase'], '| endcase', 'rsplit', '|')
+         self.checkequal(['', ' endcase'], 'test endcase', 'rsplit', 'test')
  
      def test_strip(self):





More information about the Python-checkins mailing list