From: Stefan Behnel Date: Mon, 25 Aug 2008 06:14:22 +0000 (+0200) Subject: extended test case X-Git-Tag: 0.9.9.2.beta~63^2~38 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5de90189d11c96d159124e3323c18a88b8c08a38;p=cython.git extended test case --- 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):