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

It was added in test_functools at 445f1b3.
(cherry picked from commit 9e9b2c32a3)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
Miss Islington (bot) 2018-07-16 02:26:49 -07:00 committed by Victor Stinner
parent 8487ef61de
commit 336c9539a9

View file

@ -2083,7 +2083,7 @@ def test_invalid_positional_argument(self):
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__':