Commit e7c824fb authored by Stefan Behnel's avatar Stefan Behnel

clean up test

parent a3cfec8f
__doc__ = """ # mode: test
>>> z(1,9.2, b'test')
"""
import sys
if sys.version_info[0] < 3:
__doc__ = __doc__.replace(u" b'", u" '")
def f(x, y): def f(x, y):
x = y x = y
cdef void g(int i, float f, char *p): cdef void g(int i, float f, char *p):
f = i f = i
cdef h(int i, obj): cdef h(int i, obj):
i = obj i = obj
def z(a, b, c): def z(a, b, c):
"""
>>> z(1,9.2, b'test')
"""
f(a, b) f(a, b)
f(a, b,) f(a, b,)
g(1, 2.0, "spam") g(1, 2.0, "spam")
g(a, b, c) g(a, b, c)
def fail0(a, b): def fail0(a, b):
""" """
>>> fail0(1,2) >>> fail0(1,2)
...@@ -29,6 +30,7 @@ def fail0(a, b): ...@@ -29,6 +30,7 @@ def fail0(a, b):
""" """
f() f()
def fail1(a, b): def fail1(a, b):
""" """
>>> fail1(1,2) >>> fail1(1,2)
...@@ -37,6 +39,7 @@ def fail1(a, b): ...@@ -37,6 +39,7 @@ def fail1(a, b):
""" """
f(a) f(a)
def failtype(): def failtype():
""" """
>>> failtype() >>> failtype()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment