I looked into this. It is a python issue. The doctest API return '' if
no test or passed test and return !='' if test fails. web2py cannot
easily discriminate if a test is there and passes or there isn't any.
If you can find something more about this let me know.

Massimo

On Mar 13, 5:23 am, Joschua <cit_corperat...@gmx.net> wrote:
> yeah, that would be great, because it twist the facts.. ^^
>
> On 11 Mrz., 23:15, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > I think that's doctest doing. If there is no actual test but there is
> > a docstring, it is assumed "pass".
> > It may be web2py's too. I need to check.
>
> > On Mar 11, 4:05 pm, Joschua <cit_corperat...@gmx.net> wrote:
>
> > > As example, when you look in the examples app in simple_examples.py
> > > and you execute the doctest, the docstrings in the controller hello4,
> > > hello5 and hello6 are recognized as doctests and passed. I think this
> > > is a bug (or is the doctest / web2py not able to check that, >>>?)

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to