mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
GH-83901: Improve Signature.bind error message for missing keyword-only params (#95347)
Fixes GH-83901
This commit is contained in:
parent
5eaf4d6101
commit
f4f8133387
3 changed files with 9 additions and 3 deletions
|
@ -3898,7 +3898,8 @@ class TestSignatureBind(unittest.TestCase):
|
|||
self.call(test, 1, bar=2, spam='ham')
|
||||
|
||||
with self.assertRaisesRegex(TypeError,
|
||||
"missing a required argument: 'bar'"):
|
||||
"missing a required keyword-only "
|
||||
"argument: 'bar'"):
|
||||
self.call(test, 1)
|
||||
|
||||
def test(foo, *, bar, **bin):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue