mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
merge 3.2
This commit is contained in:
commit
156285c35f
4 changed files with 12 additions and 1 deletions
|
@ -70,5 +70,9 @@ class TestDecode:
|
|||
msg = 'escape'
|
||||
self.assertRaisesRegex(ValueError, msg, self.loads, s)
|
||||
|
||||
def test_negative_index(self):
|
||||
d = self.json.JSONDecoder()
|
||||
self.assertRaises(ValueError, d.raw_decode, 'a'*42, -50000)
|
||||
|
||||
class TestPyDecode(TestDecode, PyTest): pass
|
||||
class TestCDecode(TestDecode, CTest): pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue