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

It was added in test_functools at 445f1b3.
This commit is contained in:
Zackery Spytz 2018-07-11 21:57:05 -06:00 committed by INADA Naoki
parent 993030aac5
commit 9e9b2c32a3

View file

@ -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__':