mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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. ........
This commit is contained in:
parent
011e842033
commit
596820539f
2 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue