On Apr 4, 2013 1:08 AM, "Aaron Meurer" <asmeu...@gmail.com> wrote:
>
> Yeah, this is a bug, apparently due to poor parsing of the files. The
> perfect way would be to parse using ast or something similar.

Do you think that the functionality of the ast module required for our
doc/unittester is also available on py2.5?

>
> Aaron Meurer
>
> On Wed, Apr 3, 2013 at 4:40 PM, Thomas Hisch <t.hi...@gmail.com> wrote:
> > Commenting out the following lines in runtests.py solves my problem
> > (BTW all doctests still pass)
> >
> >
> > pat = r'\s*(def|class)\s+%s\s*\(' % rawname
> > PAT = pre.compile(pat)
> > in_module = any(PAT.match(line) for line in source_lines)
> >
> > regards
> > thomas
> >
> > On Wed, Apr 3, 2013 at 11:34 PM, thomas hisch <t.hi...@gmail.com> wrote:
> >> On Wednesday, April 3, 2013 11:28:11 PM UTC+2, thomas hisch wrote:
> >>>
> >>>
> >>>
> >>> On Wednesday, April 3, 2013 11:07:59 PM UTC+2, Stefan Krastanov wrote:
> >>>>
> >>>> I may be wrong, but I think the main reason to test docstrings and
> >>>> especially the examples folder is to ensure that the documentation is
> >>>> correct and up to date.
> >>>
> >>>
> >>> This makes sense, but in the case of fem.py, which does not contain
any
> >>> docstrings, no doctests should be executed. Is this correct?
> >>>
> >>>
> >>
> >> Consider this examples which is a stripped down version of fem.py and
> >> demonstates the problem
> >>
> >>
> >> from sympy import integrate
> >>
> >> class ReferenceSimplex(object):
> >>     def integrate(self):
> >>         pass
> >>
> >> Doctesting this file triggers the doctest of the integrate method in
> >> sympy/integrals. However, If I replace the name of the 'integrate'
method in
> >> ReferenceSimplex by, e.g., 'integrate2' then no doctests are run. This
is
> >> clearly a bug in sympydoctestfinder
> >>
> >>>>
> >>>>
> >>>> The unit tests as in "TDD" are in the test folders.
> >>
> >> --
> >> You received this message because you are subscribed to a topic in the
> >> Google Groups "sympy" group.
> >> To unsubscribe from this topic, visit
> >>
https://groups.google.com/d/topic/sympy/8dC1XJAIvQg/unsubscribe?hl=en-US.
> >> To unsubscribe from this group and all its topics, send an email to
> >> sympy+unsubscr...@googlegroups.com.
> >> To post to this group, send email to sympy@googlegroups.com.
> >> Visit this group at http://groups.google.com/group/sympy?hl=en-US.
> >> For more options, visit https://groups.google.com/groups/opt_out.
> >>
> >>
> >
> > --
> > You received this message because you are subscribed to the Google
Groups "sympy" group.
> > To unsubscribe from this group and stop receiving emails from it, send
an email to sympy+unsubscr...@googlegroups.com.
> > To post to this group, send email to sympy@googlegroups.com.
> > Visit this group at http://groups.google.com/group/sympy?hl=en-US.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
> --
> You received this message because you are subscribed to a topic in the
Google Groups "sympy" group.
> To unsubscribe from this topic, visit
https://groups.google.com/d/topic/sympy/8dC1XJAIvQg/unsubscribe?hl=en-US.
> To unsubscribe from this group and all its topics, send an email to
sympy+unsubscr...@googlegroups.com.
> To post to this group, send email to sympy@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy?hl=en-US.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to