mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
#15752: merge with 3.2.
This commit is contained in:
commit
b9717b5e02
1 changed files with 2 additions and 2 deletions
|
|
@ -57,12 +57,12 @@ def test_keys_reuse(self):
|
|||
def test_extra_data(self):
|
||||
s = '[1, 2, 3]5'
|
||||
msg = 'Extra data'
|
||||
self.assertRaisesRegexp(ValueError, msg, self.loads, s)
|
||||
self.assertRaisesRegex(ValueError, msg, self.loads, s)
|
||||
|
||||
def test_invalid_escape(self):
|
||||
s = '["abc\\y"]'
|
||||
msg = 'escape'
|
||||
self.assertRaisesRegexp(ValueError, msg, self.loads, s)
|
||||
self.assertRaisesRegex(ValueError, msg, self.loads, s)
|
||||
|
||||
class TestPyDecode(TestDecode, PyTest): pass
|
||||
class TestCDecode(TestDecode, CTest): pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue