Skip to content

Commit 9e9b2c3

Browse files
ZackerySpytzmethane
authored andcommitted
bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261)
It was added in test_functools at 445f1b3.
1 parent 993030a commit 9e9b2c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_functools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2310,7 +2310,7 @@ def test_invalid_positional_argument(self):
23102310
def f(*args):
23112311
pass
23122312
msg = 'f requires at least 1 positional argument'
2313-
with self.assertRaisesRegexp(TypeError, msg):
2313+
with self.assertRaises(TypeError, msg=msg):
23142314
f()
23152315

23162316
if __name__ == '__main__':

0 commit comments

Comments
 (0)
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