]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport checkin: Fix copy & paste error in comments.
authorWalter Dörwald <walter@livinglogic.de>
Tue, 14 Dec 2004 21:33:13 +0000 (21:33 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Tue, 14 Dec 2004 21:33:13 +0000 (21:33 +0000)
Lib/test/test_codeccallbacks.py

index ac561cc219074653c27b8adf45bf61b0209cac09..8f0d59046555beb84ee220586a9d835f22b32ecf 100644 (file)
@@ -388,7 +388,7 @@ class CodecCallbackTest(unittest.TestCase):
            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 @@ class CodecCallbackTest(unittest.TestCase):
         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"<?>")