[Python-checkins] python/dist/src/Lib/test test_codeccallbacks.py, 1.16, 1.16.4.1

doerwalter at users.sourceforge.net doerwalter at users.sourceforge.net
Tue Dec 14 22:33:16 CET 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13348/Lib/test
Modified Files:
 Tag: release24-maint
	test_codeccallbacks.py 
Log Message:
Backport checkin: Fix copy & paste error in comments.
Index: test_codeccallbacks.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_codeccallbacks.py,v
retrieving revision 1.16
retrieving revision 1.16.4.1
diff -u -d -r1.16 -r1.16.4.1
--- test_codeccallbacks.py	18 Jan 2004 20:29:54 -0000	1.16
+++ test_codeccallbacks.py	14 Dec 2004 21:33:13 -0000	1.16.4.1
@@ -388,7 +388,7 @@
 codecs.replace_errors,
 UnicodeError("ouch")
 )
- # With the correct exception, "ignore" returns an empty replacement
+ # With the correct exception, "replace" returns an "?" or u"\ufffd" replacement
 self.assertEquals(
 codecs.replace_errors(UnicodeEncodeError("ascii", u"\u3042", 0, 1, "ouch")),
 (u"?", 1)
@@ -605,7 +605,7 @@
 handler.pos = 1
 self.assertEquals("\xff0".decode("ascii", "test.posreturn"), u"<?>0")
 
- # Largest valid positive position (one beyond end of input
+ # Largest valid positive position (one beyond end of input)
 handler.pos = 2
 self.assertEquals("\xff0".decode("ascii", "test.posreturn"), u"<?>")
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /