From 9af34c935185eca497617a216d141c72ffaeae9c Mon Sep 17 00:00:00 2001 From: Batuhan Taskaya Date: Fri, 16 Jul 2021 18:43:02 +0300 Subject: bpo-20201: variadic arguments support for AC (GH-18609) Implement support for `*args` in AC, and port `print()` to use it. --- Lib/test/test_call.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_call.py') diff --git a/Lib/test/test_call.py b/Lib/test/test_call.py index c929ca87ddc..1d274521aeb 100644 --- a/Lib/test/test_call.py +++ b/Lib/test/test_call.py @@ -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) -- cgit v1.2.3