It appears that doctest does not work straightforwardly within iPython.
I would like to be able to use doctest within a file conditionally, so
that I can develop it within ipython and test it otherwise.
It would seem that this would work:
Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
[GCC 3.3 200303
Michael Tobis wrote:
> It appears that doctest does not work straightforwardly within iPython.
>
> I would like to be able to use doctest within a file conditionally, so
> that I can develop it within ipython and test it otherwise.
>
> It would seem that this would work:
>
> Python 2.4.1 (#2, Ma
It appears that doctest does not work straightforwardly within iPython.
I would like to be able to use doctest within a file conditionally, so
that I can develop it within ipython and test it otherwise.
It would seem that this would work:
Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
[GCC 3.3 200303