mirror of
https://github.com/python/cpython.git
synced 2025-09-10 02:36:56 +00:00
merge 3.3
This commit is contained in:
commit
584f5cbf16
4 changed files with 12 additions and 1 deletions
|
@ -91,5 +91,9 @@ class TestDecode:
|
|||
self.assertEqual(self.loads(bom_in_str), '\ufeff')
|
||||
self.assertEqual(self.json.load(StringIO(bom_in_str)), '\ufeff')
|
||||
|
||||
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