mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
bpo-33967: Fix wrong use of assertRaises (GH-8306)
This commit is contained in:
parent
01b7d58982
commit
56d8f57b83
1 changed files with 1 additions and 1 deletions
|
|
@ -2310,7 +2310,7 @@ def test_invalid_positional_argument(self):
|
|||
def f(*args):
|
||||
pass
|
||||
msg = 'f requires at least 1 positional argument'
|
||||
with self.assertRaises(TypeError, msg=msg):
|
||||
with self.assertRaisesRegex(TypeError, msg):
|
||||
f()
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue