aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_call.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_call.py')
-rw-r--r--Lib/test/test_call.py2
1 files changed, 1 insertions, 1 deletions
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)