summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_codeccallbacks.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-09-23 17:55:21 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-09-23 17:55:21 (GMT)
commit6f80f5d4446f06d15274ad519cae6929a3565cc0 (patch)
tree652d58b6404e41887d2acbe1fe538d3eb05267a1 /Lib/test/test_codeccallbacks.py
parent20b8d992b008672d52a84c8d35992033ccfc9d84 (diff)
downloadcpython-6f80f5d4446f06d15274ad519cae6929a3565cc0.zip
cpython-6f80f5d4446f06d15274ad519cae6929a3565cc0.tar.gz
cpython-6f80f5d4446f06d15274ad519cae6929a3565cc0.tar.bz2
Issue #15379: Fix passing of non-BMP characters as integers for the charmap decoder (already working as unicode strings).
Patch by Serhiy Storchaka.
Diffstat (limited to 'Lib/test/test_codeccallbacks.py')
-rw-r--r--Lib/test/test_codeccallbacks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_codeccallbacks.py b/Lib/test/test_codeccallbacks.py
index c5b1e25..e656d2f 100644
--- a/Lib/test/test_codeccallbacks.py
+++ b/Lib/test/test_codeccallbacks.py
@@ -744,7 +744,7 @@ class CodecCallbackTest(unittest.TestCase):
raise ValueError
self.assertRaises(UnicodeError, codecs.charmap_decode, b"\xff", "strict", {0xff: None})
self.assertRaises(ValueError, codecs.charmap_decode, b"\xff", "strict", D())
- self.assertRaises(TypeError, codecs.charmap_decode, b"\xff", "strict", {0xff: sys.maxunicode+1})
+ self.assertRaises(TypeError, codecs.charmap_decode, b"\xff", "strict", {0xff: 0x110000})
def test_encodehelper(self):
# enhance coverage of: