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

If an exception is expected from the function, doctest will not compare
the output printed before the exception happens (and I really dislike that
aspect of doctest). So in those cases, one could have the refnanny
complain without a failure.

Of course, you'll usually pay enough attention to see the output anyway,
so it's not a big deal.

Dag Sverre

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

Reply via email to