mirror of
https://github.com/python/cpython.git
synced 2026-03-04 12:01:00 +00:00
bpo-33967: Remove use of deprecated assertRaisesRegexp() (GH-8261) (GH-8295)
It was added in test_functools at445f1b3. (cherry picked from commit9e9b2c32a3) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
parent
8487ef61de
commit
336c9539a9
1 changed files with 1 additions and 1 deletions
|
|
@ -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__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue