diff options
author | Georg Brandl <georg@python.org> | 2009-05-05 07:52:05 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-05-05 07:52:05 (GMT) |
commit | 596820539f8e776cfb790573298c62fae319c67f (patch) | |
tree | 1f8eee8fb01bf10bd1febce0001ae0ae20bfcce5 /Lib/json | |
parent | 011e8420339245f9b55d41082ec6036f2f83a182 (diff) | |
download | cpython-596820539f8e776cfb790573298c62fae319c67f.zip cpython-596820539f8e776cfb790573298c62fae319c67f.tar.gz cpython-596820539f8e776cfb790573298c62fae319c67f.tar.bz2 |
Merged revisions 72314 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72314 | georg.brandl | 2009-05-05 09:48:12 +0200 (Di, 05 Mai 2009) | 1 line
#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 2d55672..2e9136b 100644 --- a/Lib/json/tests/test_scanstring.py +++ b/Lib/json/tests/test_scanstring.py @@ -102,3 +102,6 @@ class TestScanString(TestCase): self.assertEquals( scanstring('["Bad value", truth]', 2, True), ('Bad value', 12)) + + def test_overflow(self): + self.assertRaises(OverflowError, json.decoder.scanstring, b"xxx", sys.maxsize+1) |