summaryrefslogtreecommitdiff
path: root/tests/run/cyfunction.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/cyfunction.pyx')
-rw-r--r--tests/run/cyfunction.pyx6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/run/cyfunction.pyx b/tests/run/cyfunction.pyx
index 3811b2694..f61dddb53 100644
--- a/tests/run/cyfunction.pyx
+++ b/tests/run/cyfunction.pyx
@@ -363,6 +363,9 @@ cdef class TestUnboundMethodCdef:
>>> C = TestUnboundMethodCdef
>>> IS_PY2 or (C.meth is C.__dict__["meth"])
True
+ >>> TestUnboundMethodCdef.meth() # doctest:+ELLIPSIS
+ Traceback (most recent call last):
+ TypeError: ...
"""
def meth(self): pass
@@ -372,6 +375,9 @@ class TestUnboundMethod:
>>> C = TestUnboundMethod
>>> IS_PY2 or (C.meth is C.__dict__["meth"])
True
+ >>> TestUnboundMethod.meth() # doctest:+ELLIPSIS
+ Traceback (most recent call last):
+ TypeError: ...
"""
def meth(self): pass