Issue 1147: doctests are broken
http://code.google.com/p/sympy/issues/detail?id=1147
New issue report by ondrej.certik:
$ ./setup.py test_doc
running test_doc
Testing docstrings.
....F.......................................................................................................................................................................F.......................
======================================================================
FAIL: Doctest: sympy.core.evalf.N
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/doctest.py", line 2128, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for sympy.core.evalf.N
File "/home/ondra/repos/sympy.hg/sympy/core/evalf.py", line 998, in N
----------------------------------------------------------------------
File "/home/ondra/repos/sympy.hg/sympy/core/evalf.py", line 1007, in
sympy.core.evalf.N
Failed example:
Sum(1/k**k, (k, 1, oo))
Expected:
Sum(k**(-k), (k, 1, oo))
Got:
Sum(1/(k**k), (k, 1, oo))
======================================================================
FAIL: Doctest: sympy.simplify.simplify.together
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/doctest.py", line 2128, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for sympy.simplify.simplify.together
File "/home/ondra/repos/sympy.hg/sympy/simplify/simplify.py", line 185,
in together
----------------------------------------------------------------------
File "/home/ondra/repos/sympy.hg/sympy/simplify/simplify.py", line 223, in
sympy.simplify.simplify.together
Failed example:
together(1/x**y + 1/x**(y-1))
Expected:
x**(-y)*(1 + x)
Got:
(x**y + x**(-1 + y))/x**(-1 + 2*y)
----------------------------------------------------------------------
Ran 196 tests in 8.423s
FAILED (failures=2)
Owner set to the one who pushed the breaking patches. :)
Issue attributes:
Status: Accepted
Owner: tetaberta
Labels: Type-Defect Priority-Medium
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---