Sébastien Barthélemy <barthel...@...> writes:

> >> This is a problem with doctest, which uses inspect.is_function to check
> >> whether something is a function, which fails for Cython functions (which
> >> instead answer to inspect.is_builtin). It would be nice if someone would
> >> take this to the doctest list with a patch at some point...
[...]
> http://wiki.cython.org/
FAQ#Doctestskipstestsfromcythonfunctions.2Cwhy.3FIsthereaworkaround.3F

Thanks for this, it was very useful. I've tweaked it into a reusable module 
allowing this:

python -c "import cydoctest, mymod; cydoctest.testmod(mymod)"

http://wiki.cython.org/FAQ#HowcanIrundoctestsinCythoncode.28pyxfiles.29.3F


_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to