blob: 5b3b0779bbad13e443e92eb088ce730a019ae2a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# cython: binding=True
# mode: run
# tag: cyfunction
cdef class TestMethodOneArg:
def meth(self, arg):
pass
def call_meth(x):
"""
>>> call_meth(TestMethodOneArg()) # doctest: +ELLIPSIS
Traceback (most recent call last):
...
TypeError: meth() takes exactly ... argument (0 given)
"""
return x.meth()
|