mirror of
https://github.com/python/cpython.git
synced 2025-08-26 11:45:20 +00:00
bpo-20201: variadic arguments support for AC (GH-18609)
Implement support for `*args` in AC, and port `print()` to use it.
This commit is contained in:
parent
7915c96ffd
commit
9af34c9351
8 changed files with 664 additions and 100 deletions
|
@ -129,7 +129,7 @@ class CFunctionCallsErrorMessages(unittest.TestCase):
|
|||
min, 0, default=1, key=2, foo=3)
|
||||
|
||||
def test_varargs17_kw(self):
|
||||
msg = r"^print\(\) takes at most 4 keyword arguments \(5 given\)$"
|
||||
msg = r"'foo' is an invalid keyword argument for print\(\)$"
|
||||
self.assertRaisesRegex(TypeError, msg,
|
||||
print, 0, sep=1, end=2, file=3, flush=4, foo=5)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue