mirror of https://github.com/python/cpython
Fix copy & paste error in comments.
This commit is contained in:
parent
744aaa02e0
commit
29ddfba3d8
|
@ -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"<?>")
|
||||
|
||||
|
|
Loading…
Reference in New Issue