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

doerwalter at users.sourceforge.net doerwalter at users.sourceforge.net
Tue Dec 14 22:28:11 CET 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11956/Lib/test

Modified Files:
	test_codeccallbacks.py 
Log Message:
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.17
diff -u -d -r1.16 -r1.17
--- test_codeccallbacks.py	18 Jan 2004 20:29:54 -0000	1.16
+++ test_codeccallbacks.py	14 Dec 2004 21:28:07 -0000	1.17
@@ -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