summaryrefslogtreecommitdiff
path: root/Lib/test/test_codeccallbacks.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2004-12-14 21:28:07 +0000
committerWalter Dörwald <walter@livinglogic.de>2004-12-14 21:28:07 +0000
commitae769ea9119fa8b7a154ccf90665bb5ecc7d33a0 (patch)
tree26ecf930b126016026d38ff2784162e266cf811b /Lib/test/test_codeccallbacks.py
parent9ac21bbeb240c34f143f802f4177bce6cd1e6e83 (diff)
downloadcpython-ae769ea9119fa8b7a154ccf90665bb5ecc7d33a0.tar.gz
Fix copy & paste error in comments.
Diffstat (limited to 'Lib/test/test_codeccallbacks.py')
-rw-r--r--Lib/test/test_codeccallbacks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_codeccallbacks.py b/Lib/test/test_codeccallbacks.py
index ac561cc219..8f0d590465 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"<?>")