summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2004-12-14 21:28:07 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2004-12-14 21:28:07 (GMT)
commit29ddfba3d8172046293d02bfbdb3757ab27fef05 (patch)
treeace02eb094e182aed0d3daf821cd6ec0baa76ff2 /Lib
parent744aaa02e03a89305d95c7a44878190c1d7c1d83 (diff)
downloadcpython-29ddfba3d8172046293d02bfbdb3757ab27fef05.zip
cpython-29ddfba3d8172046293d02bfbdb3757ab27fef05.tar.gz
cpython-29ddfba3d8172046293d02bfbdb3757ab27fef05.tar.bz2
Fix copy & paste error in comments.
Diffstat (limited to 'Lib')
-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 ac561cc..8f0d590 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"<?>")