[Numpy-discussion] doctests failing in ipython

Charles R Harris charlesr.harris@gmail....
Fri Jul 11 02:40:25 CDT 2008


On Fri, Jul 11, 2008 at 1:29 AM, Robert Kern <robert.kern@gmail.com> wrote:

> On Fri, Jul 11, 2008 at 02:11, Charles R Harris
> <charlesr.harris@gmail.com> wrote:
> > The problem is the Out[#] appended to the output.
> >
> > ................................................Out[4]: poly1d([ 1.,  2.,
> > 3.])
> > **********************************************************************
> > File
> "/usr/lib/python2.5/site-packages/numpy/lib/tests/test_polynomial.py",
> > line 6, in test_polynomial
> > Failed example:
> >     p
> > Expected:
> >     poly1d([ 1.,  2.,  3.])
> > Got nothing
> >
> > Tons of these.
>
> Yes. This is well-known. IPython cannot run doctests in general
> without modification. This is not a bug in numpy's tests; just an
> incompatibility between IPython and doctest.
>

I don't think any of the unit tests should be doctests. They look ugly and
are hard to read.  Second, I didn't used to see the problem.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080711/4be92ecd/attachment.html 


More information about the Numpy-discussion mailing list