8000 bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261) (G… · python/cpython@0a820a2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a820a2

Browse files
miss-islingtonZackerySpytz
authored andcommitted
bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261) (GH-8296)
It was added in test_functools at 445f1b3. (cherry picked from commit 9e9b2c3) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
1 parent bbddd66 commit 0a820a2

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
@@ -2192,7 +2192,7 @@ def test_invalid_positional_argument(self):
21922192
def f(*args):
21932193
pass
21942194
msg = 'f requires at least 1 positional argument'
2195-
with self.assertRaisesRegexp(TypeError, msg):
2195+
with self.assertRaises(TypeError, msg=msg):
21962196
f()
21972197

21982198
if __name__ == '__main__':

0 commit comments

Comments
 (0)
0