#15752: s/assertRaisesRegexp/assertRaisesRegex/g

This commit is contained in:
Ezio Melotti 2012-08-21 11:38:41 +03:00
parent 7cacd2eb92
commit 1b47bf43a6

View File

@ -57,12 +57,12 @@ class TestDecode:
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