diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py index f9f96bac6d4ed2..63149d54082a78 100644 --- a/Lib/test/test_functools.py +++ b/Lib/test/test_functools.py @@ -2310,7 +2310,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__':
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: