From 5de90189d11c96d159124e3323c18a88b8c08a38 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 25 Aug 2008 08:14:22 +0200 Subject: [PATCH] extended test case --- tests/run/callargs.pyx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/run/callargs.pyx b/tests/run/callargs.pyx index 6976a993..e2e6855e 100644 --- a/tests/run/callargs.pyx +++ b/tests/run/callargs.pyx @@ -47,9 +47,16 @@ __doc__ = u""" 0 >>> test_noargs(g) 0 + + # and some errors: + >>> test_noargs(h) Traceback (most recent call last): TypeError: h() takes at least 3 positional arguments (0 given) + + >>> h(1,2, d=5) + Traceback (most recent call last): + TypeError: h() takes at least 3 positional arguments (2 given) """ def e(*args, **kwargs): -- 2.26.2