diff options
author | Georg Brandl <georg@python.org> | 2009-05-05 07:48:12 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-05-05 07:48:12 (GMT) |
commit | f71ba95e9146872200bbc474337b41b0b4d964de (patch) | |
tree | 4fbb76649cd59b8164e31a6fb0be5533c0e9bcc3 /Lib/json | |
parent | ab538fc2b20acc1c82eb28ccfc6450ebfb8d7b1c (diff) | |
download | cpython-f71ba95e9146872200bbc474337b41b0b4d964de.zip cpython-f71ba95e9146872200bbc474337b41b0b4d964de.tar.gz cpython-f71ba95e9146872200bbc474337b41b0b4d964de.tar.bz2 |
#5932: fix error return in _convertPyInt_AsSsize_t() conversion function.
Diffstat (limited to 'Lib/json')
-rw-r--r-- | Lib/json/tests/test_scanstring.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/json/tests/test_scanstring.py b/Lib/json/tests/test_scanstring.py index 6b600db..53d0b66 100644 --- a/Lib/json/tests/test_scanstring.py +++ b/Lib/json/tests/test_scanstring.py @@ -107,3 +107,6 @@ class TestScanString(TestCase): "xxx") self.assertRaises(UnicodeDecodeError, json.encoder.encode_basestring_ascii, b"xx\xff") + + def test_overflow(self): + self.assertRaises(OverflowError, json.decoder.scanstring, b"xxx", sys.maxsize+1) |