Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_codeccallbacks.py @ 34167:fdecba26fc87 2.4
Backport checkin: Fix copy & paste error in comments.
| author | Walter Dörwald <walter@livinglogic.de> |
|---|---|
| date | Tue, 14 Dec 2004 21:33:13 +0000 |
| parents | aca1ce1b4b61 |
| children | 6b8c55877755 |
line wrap: on
line diff
--- a/Lib/test/test_codeccallbacks.py Tue Dec 14 07:20:27 2004 +0000 +++ b/Lib/test/test_codeccallbacks.py Tue Dec 14 21:33:13 2004 +0000 @@ -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"<?>")
