From: Walter Dörwald Date: Tue, 14 Dec 2004 21:33:13 +0000 (+0000) Subject: Backport checkin: Fix copy & paste error in comments. X-Git-Tag: v2.4.1c1~157 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a7a14cd49b98b40e62653c4d76bca1eac13e00f;p=thirdparty%2FPython%2Fcpython.git Backport checkin: Fix copy & paste error in comments. --- diff --git a/Lib/test/test_codeccallbacks.py b/Lib/test/test_codeccallbacks.py index ac561cc21907..8f0d59046555 100644 --- a/Lib/test/test_codeccallbacks.py +++ b/Lib/test/test_codeccallbacks.py @@ -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"")