Commit 0ccbb03a authored by Robert Bradshaw's avatar Robert Bradshaw

Common utility types test.

parent 5336e49b
PYTHON setup.py build_ext --inplace
PYTHON -c "import runner"
######## setup.py ########
from Cython.Build.Dependencies import cythonize
from distutils.core import setup
setup(
ext_modules = cythonize("*.pyx"),
)
######## a.pyx ########
# cython: binding=True
def funcA():
return
######## b.pyx ########
# cython: binding=True
def funcB():
return
######## runner.py ########
print("importing...")
import a, b
print(type(a.funcA))
assert type(a.funcA).__name__ == 'cython_function_or_method'
assert type(a.funcA) is type(b.funcB)
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