[Pytest-commit] Issue #546: cython functions not discovered/recognized (hpk42/pytest)
Joren Retel
issues-reply at bitbucket.org
Fri Jul 25 17:15:40 CEST 2014
New issue 546: cython functions not discovered/recognized
https://bitbucket.org/hpk42/pytest/issue/546/cython-functions-not-discovered-recognized
Joren Retel:
Cython functions are currently not recognized.
The problem seems to be that inspect.isfunction() uses isinstance(obj, types.FunctionType) which fails for cython functions (_pytest/python.py:227).
Attached a small example package. To reproduce, install cython and compile the code with:
python setup.py build_ext --inplace
the cython test 'test something' should be discoverable by opening test_everything.py.
More information about the pytest-commit
mailing list