Updates:
        Blockedon: 1947 2041

Comment #4 on issue 1379 by asmeurer: documentation tests fail when run in interactive mode
http://code.google.com/p/sympy/issues/detail?id=1379

After the fixes from issue 2041 and issue 1947 it runs fine in a regular Python interpreter (clearly, based on the issue from 2041, the displayhook for the tester was messed up). However, in IPython, I get something very strange:

In [1]: doctest()
============================= test process starts ==============================
executable:   /sw/bin/python  (2.7.1-final-0)

sympy/assumptions/ask.py[2] Out[1]: .Out[1]: Out[1]: Out[1]: . [OK] sympy/assumptions/assume.py[3] Out[1]: Out[1]: .Out[1]: Out[1]: Out[1]: .Out[1]: Out[1]: Out[1]: . [OK] sympy/assumptions/refine.py[4] Out[1]: .Out[1]: Out[1]: Out[1]: Out[1]: Out[1]: Out[1]: .Out[1]: Out[1]: .Out[1]: Out[1]: . [OK] sympy/assumptions/handlers/calculus.py[2] Out[1]: Out[1]: .Out[1]: Out[1]: . [OK] sympy/assumptions/handlers/order.py[1] Out[1]: Out[1]: . [OK] sympy/concrete/gosper.py[1] Out[1]: . [OK] sympy/concrete/summations.py[2] Out[1]: .Out[1]: Out[1]: Out[1]: Out[1]: Out[1]: Out[1]: . [OK] sympy/core/add.py[1] Out[1]: Out[1]: Out[1]: . [OK] sympy/core/assumptions.py[1] Out[1]: . [OK] sympy/core/basic.py[20] Out[1]: .Out[1]: Out[1]: Out[1]: .Out[1]: Out[1]: Out[1]: Out[1]: .Out[1]: .Out[1]: Out[1]: .Out[1]: .Out[1]: Out[1]: .Out[1]: Out[1]: Out[1]: .Out[1]: Out[1]: ..Out[1]: Out[1]: Out[1]: .Out[1]: Out[1]: .Out[1]: Out[1]: Out[1]: Out[1]: Out[1]: Out[1]: Out[1]: Out[1]: Out[1]: Out[1]: .Out[1]: Out[1]: Out[1]: .Out[1]: Out[1]: Out[1]: .Out[1]: .Out[1]: Out[1]: .Out[1]: Out[1]: .Out[1]: Out[1]: Out[1]: .Out[1]: Out[1]: Out[1]: Out[1]: Out[1]: . [OK] sympy/core/containers.py[2] Out[1]: .Out[1]: Out[1]: . [OK] sympy/core/evalf.py[2] Out[1]: Out[1]: .Out[1]: . [OK] sympy/core/expr.py[9] Out[1]: Out[1]: .Out[1]: .Out[1]: Out[1]: Out[1]: .Out[1]: Out[1]: Out[1]: .Out[1]: Out[1]: .Out[1]: Out[1]: Out[1]: Out[1]: .Out[1]: Out[1]: Out[1]: .Out[1]: Out[1]: Out[1]: Out[1]: .Out[1]: Out[1]: . [OK]

and so on…

and there are these failures:

__________________________ sympy.core.function.expand __________________________
File "./sympy/core/function.py", line 244, in sympy.core.function.expand
Failed example:
    expand_mul(_)
Exception raised:
    Traceback (most recent call last):
      File "/sw/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest sympy.core.function.expand[26]>", line 1, in <module>
        expand_mul(_)
    NameError: name '_' is not defined
________________________________________________________________________________
_______________ sympy.statistics.distributions.Normal.confidence _______________ File "./sympy/statistics/distributions.py", line 117, in sympy.statistics.distributions.Normal.confidence
Failed example:
    N.probability(*_).evalf()
Exception raised:
    Traceback (most recent call last):
      File "/sw/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
File "<doctest sympy.statistics.distributions.Normal.confidence[3]>", line 1, in <module>
        N.probability(*_).evalf()
    NameError: name '_' is not defined
**********************************************************************
File "./sympy/statistics/distributions.py", line 124, in sympy.statistics.distributions.Normal.confidence
Failed example:
    N.probability(*_).evalf()
Exception raised:
    Traceback (most recent call last):
      File "/sw/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
File "<doctest sympy.statistics.distributions.Normal.confidence[6]>", line 1, in <module>
        N.probability(*_).evalf()
    NameError: name '_' is not defined
________________________________________________________________________________
____________________ sympy.statistics.distributions.Normal _____________________ File "./sympy/statistics/distributions.py", line 79, in sympy.statistics.distributions.Normal
Failed example:
    _.evalf()
Exception raised:
    Traceback (most recent call last):
      File "/sw/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
File "<doctest sympy.statistics.distributions.Normal[9]>", line 1, in <module>
        _.evalf()
    NameError: name '_' is not defined

By the way, I don't think doctest should even be imported with "from sympy import *". You can still access it by "from sympy.utilities.runtests import *". The same for test. Do others agree with this?

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

Reply via email to