From 6eec9c6bd178c10394764c4e4b25fb419709efae Mon Sep 17 00:00:00 2001 From: Zackery Spytz Date: Wed, 11 Jul 2018 21:57:05 -0600 Subject: [PATCH] bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261) It was added in test_functools at 445f1b3. (cherry picked from commit 9e9b2c32a34594e901b5b9a03c561a2a2bf63ece) Co-authored-by: Zackery Spytz --- Lib/test/test_functools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py index e325480e6c9208..93f2800a3c70dd 100644 --- a/Lib/test/test_functools.py +++ b/Lib/test/test_functools.py @@ -2192,7 +2192,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__': pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy