Hello Dag, thank you for your help,
>> 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... I had a quick look at it but there is too much I do not understand in both cython and doctest there to work on this now. >> To get a solution right away, this is what I do to invoke testing on a >> module "cmbutils": >> ... this works fine, as long as you're not doing "from somewhere import something" in which case, "something" is tested too (and fails because of bad context). I added a _from_module() test (found in doctest.py) which seem to fix that. > BTW if you get that last solution to work, it would be nice if you could > take the time to add it to the FAQ :-) Done. http://wiki.cython.org/FAQ#Doctestskipstestsfromcythonfunctions.2Cwhy.3FIsthereaworkaround.3F regards, and thank you again. _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
