Commit 51a23fd1 authored by Robert Bradshaw's avatar Robert Bradshaw

test fix

parent 19cdcd6d
...@@ -112,8 +112,8 @@ def test_ccall_method(x): ...@@ -112,8 +112,8 @@ def test_ccall_method(x):
return x.meth() return x.meth()
@cython.cfunc @cython.cfunc
@cython.returns(p_int) @cython.returns(cython.p_int)
@cython.locals(xptr=p_int) @cython.locals(xptr=cython.p_int)
def typed_return(xptr): def typed_return(xptr):
return xptr return xptr
...@@ -122,4 +122,4 @@ def test_typed_return(): ...@@ -122,4 +122,4 @@ def test_typed_return():
>>> test_typed_return() >>> test_typed_return()
""" """
x = cython.declare(int, 5) x = cython.declare(int, 5)
assert typed_return(cython.address(x)) == cython.address(x) assert typed_return(cython.address(x))[0] is x
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