From 37a971113655cf68b4a02c09c15809836f63e9cd Mon Sep 17 00:00:00 2001 From: "Robin Dunn (cyclops)" Date: Tue, 17 Mar 2015 16:39:14 -0700 Subject: [PATCH] fail signature check if none of the keyword args are used. --- sip/siplib/siplib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sip/siplib/siplib.c b/sip/siplib/siplib.c index 8e66f869..01f52eed 100644 --- a/sip/siplib/siplib.c +++ b/sip/siplib/siplib.c @@ -3720,7 +3720,8 @@ static int parsePass1(PyObject **parseErrp, sipSimpleWrapper **selfp, if (nr_kwd_args_used == 0 && unused != NULL) { Py_INCREF(sipKwdArgs); - *unused = sipKwdArgs; + *unused = sipKwdArgs; + failure.reason = TooMany; } else {