summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_codeccallbacks.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-11-17 20:14:58 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-11-17 20:14:58 (GMT)
commite3ae321222c32d64232c46e4062082effec79bcf (patch)
tree1afcaf1354d5d6e7ddb9d3fb3a534b43c37f1769 /Lib/test/test_codeccallbacks.py
parent1df43d33d2f17584639759519e290021b063485c (diff)
downloadcpython-e3ae321222c32d64232c46e4062082effec79bcf.zip
cpython-e3ae321222c32d64232c46e4062082effec79bcf.tar.gz
cpython-e3ae321222c32d64232c46e4062082effec79bcf.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 4825f43..150a0d2 100644
--- a/Lib/test/test_codeccallbacks.py
+++ b/Lib/test/test_codeccallbacks.py
@@ -717,7 +717,7 @@ class CodecCallbackTest(unittest.TestCase):
raise ValueError
self.assertRaises(UnicodeError, codecs.charmap_decode, "\xff", "strict", {0xff: None})
self.assertRaises(ValueError, codecs.charmap_decode, "\xff", "strict", D())
- self.assertRaises(TypeError, codecs.charmap_decode, "\xff", "strict", {0xff: sys.maxunicode+1})
+ self.assertRaises(TypeError, codecs.charmap_decode, "\xff", "strict", {0xff: 0x110000})
def test_encodehelper(self):
# enhance coverage of: