diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/json_tests/test_decode.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/json_tests/test_decode.py b/Lib/test/json_tests/test_decode.py index 4f7896e..0a55a33 100644 --- a/Lib/test/json_tests/test_decode.py +++ b/Lib/test/json_tests/test_decode.py @@ -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 |