Commit 9e9b2c32 authored by Zackery Spytz's avatar Zackery Spytz Committed by INADA Naoki

bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261)

It was added in test_functools at 445f1b35.
parent 993030aa
...@@ -2310,7 +2310,7 @@ class TestSingleDispatch(unittest.TestCase): ...@@ -2310,7 +2310,7 @@ class TestSingleDispatch(unittest.TestCase):
def f(*args): def f(*args):
pass pass
msg = 'f requires at least 1 positional argument' msg = 'f requires at least 1 positional argument'
with self.assertRaisesRegexp(TypeError, msg): with self.assertRaises(TypeError, msg=msg):
f() f()
if __name__ == '__main__': if __name__ == '__main__':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment