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
1 changed files with 1 additions and 1 deletions

View File

@ -2310,7 +2310,7 @@ class TestSingleDispatch(unittest.TestCase):
def f(*args):
pass
msg = 'f requires at least 1 positional argument'
with self.assertRaisesRegexp(TypeError, msg):
with self.assertRaises(TypeError, msg=msg):
f()
if __name__ == '__main__':