mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-122943: Add the varpos parameter in _PyArg_UnpackKeywords (GH-126564)
Remove _PyArg_UnpackKeywordsWithVararg. Add comments for integer arguments of _PyArg_UnpackKeywords.
This commit is contained in:
parent
ee0746af7d
commit
061e50f196
94 changed files with 1220 additions and 685 deletions
|
@ -168,7 +168,7 @@ class CFunctionCallsErrorMessages(unittest.TestCase):
|
|||
print, 0, sep=1, end=2, file=3, flush=4, foo=5)
|
||||
|
||||
def test_varargs18_kw(self):
|
||||
# _PyArg_UnpackKeywordsWithVararg()
|
||||
# _PyArg_UnpackKeywords() with varpos
|
||||
msg = r"invalid keyword argument for print\(\)$"
|
||||
with self.assertRaisesRegex(TypeError, msg):
|
||||
print(0, 1, **{BadStr('foo'): ','})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue