Stefan wrote: > Hi, > > Robert Bradshaw wrote: >> On Feb 20, 2009, at 5:14 AM, Dag Sverre Seljebotn wrote: >> >>> Dag Sverre Seljebotn wrote: >>>> It could however simplify the four lines at the end of every >>>> function in >>>> Cython-generated C code. Personally I prefer to have the testcases >>>> listed as "failed" when run from runtests.py (and even be able to >>>> flag >>>> refcount errors as expected in doctests, if we ever need that), but I >>>> don't have a strong opinion either way. >> >> If it prints stuff out, it will still be listed as failed, right? > > Sure, she just needs to keep her mouth shut when all is ok, and burst > stuff > into Python's stdout when things go wrong. That will make the doctests > fail > for free. That way it's trivial to test for output in the doctests as
Well, not if you expect exceptions in the doctests... (I hate that aspect of doctest myself; I' Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
