Commit ae4e39db authored by Stefan Behnel's avatar Stefan Behnel

Clean up test file.

parent 7d69ae07
...@@ -41,13 +41,11 @@ ctypedef int my_int ...@@ -41,13 +41,11 @@ ctypedef int my_int
######## a.pyx ######## ######## a.pyx ########
from other cimport ( from other cimport (
A, A,
foo, foo,
) )
print A, foo(10) print(A, foo(10))
cimport other cimport other
...@@ -57,8 +55,6 @@ cdef call_fooptr(int (*fptr)(int)): ...@@ -57,8 +55,6 @@ cdef call_fooptr(int (*fptr)(int)):
def call_other_foo(): def call_other_foo():
x = other.foo # GH4000 - failed because other was untyped x = other.foo # GH4000 - failed because other was untyped
return call_fooptr(x) # check that x is correctly resolved as a function pointer return call_fooptr(x) # check that x is correctly resolved as a function pointer
print(other.A, other.foo(10), call_other_foo()) print(other.A, other.foo(10), call_other_foo())
......
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