2008/7/2 Ryan May [EMAIL PROTECTED]:
To be clear, these aren't tests of the numpy code. The tests would be
to make sure the examples still run.
Right. I just don't think effort should be put into making examples
using matplotlib run as doctests. If the behavior is important, numpy
should
On Wed, Jul 2, 2008 at 5:47 PM, Stéfan van der Walt [EMAIL PROTECTED] wrote:
How about a slight modification to Fernando's idea: a dummy function that
a) Does nothing if matplotlib is not installed
b) Otherwise passes through calls to matplotlib, after setting the
backend to /dev/null. Any
Just a few questions/comments about doctests:
1. Should all doctests be written such that you could start Python, do
an import numpy as np, and then type in the examples verbatim? There
are a number that currently wouldn't work that way (they depend on the
function under test being in the local
On Tue, Jul 1, 2008 at 11:56 AM, Alan McIntyre [EMAIL PROTECTED]
wrote:
Just a few questions/comments about doctests:
1. Should all doctests be written such that you could start Python, do
an import numpy as np, and then type in the examples verbatim? There
are a number that currently
On Tue, Jul 1, 2008 at 12:56, Alan McIntyre [EMAIL PROTECTED] wrote:
Just a few questions/comments about doctests:
1. Should all doctests be written such that you could start Python, do
an import numpy as np, and then type in the examples verbatim? There
are a number that currently wouldn't
On Tue, Jul 1, 2008 at 2:45 PM, Robert Kern [EMAIL PROTECTED] wrote:
If the
auto-ignore capability is still needed after that, I'll work on it.
It seems to me that the ellipsis mechanism just allows the output to
differ. However, matplotlib would still be required because plt.plot()
would
On Tue, Jul 1, 2008 at 14:14, Alan McIntyre [EMAIL PROTECTED] wrote:
On Tue, Jul 1, 2008 at 2:45 PM, Robert Kern [EMAIL PROTECTED] wrote:
If the
auto-ignore capability is still needed after that, I'll work on it.
It seems to me that the ellipsis mechanism just allows the output to
differ.
On Tue, Jul 1, 2008 at 3:20 PM, Robert Kern [EMAIL PROTECTED] wrote:
Can it work on an entire section? If not, can we do something that
works on a whole section? Everything after Plot the window and its
frequency response: is not required for testing.
It's on a per-line basis at the moment, so
On Tue, Jul 1, 2008 at 1:30 PM, Alan McIntyre [EMAIL PROTECTED]
wrote:
On Tue, Jul 1, 2008 at 3:20 PM, Robert Kern [EMAIL PROTECTED] wrote:
Can it work on an entire section? If not, can we do something that
works on a whole section? Everything after Plot the window and its
frequency
On Tue, Jul 1, 2008 at 3:39 PM, Charles R Harris
[EMAIL PROTECTED] wrote:
We could always just make the plotting section one of those it's just
an example not a doctest things and remove the (since it
doesn't appear to provide any useful test coverage or anything).
Would it serve to overload
On Tue, Jul 1, 2008 at 3:33 PM, Robert Kern [EMAIL PROTECTED] wrote:
That's not a bad idea. Coordinate with Stéfan about the details (if
any are left to be decided).
Ok, will do. I'll also update all the test documentation I can find
so that documenters have a chance of being aware of the
On Tue, Jul 1, 2008 at 14:39, Charles R Harris
[EMAIL PROTECTED] wrote:
On Tue, Jul 1, 2008 at 1:30 PM, Alan McIntyre [EMAIL PROTECTED]
wrote:
On Tue, Jul 1, 2008 at 3:20 PM, Robert Kern [EMAIL PROTECTED] wrote:
Can it work on an entire section? If not, can we do something that
works on a
Tue, 01 Jul 2008 15:30:47 -0400, Alan McIntyre wrote:
On Tue, Jul 1, 2008 at 3:20 PM, Robert Kern [EMAIL PROTECTED]
wrote:
Can it work on an entire section? If not, can we do something that
works on a whole section? Everything after Plot the window and its
frequency response: is not required
On Tue, Jul 1, 2008 at 1:41 PM, Pauli Virtanen [EMAIL PROTECTED] wrote:
But it's a custom tweak to doctest, so it might break at some point in
the future, and I don't love the monkeypatching here...
Welcome to the joys of extending doctest/unittest. They hardcoded so
much stuff in there that
Robert Kern wrote:
On Tue, Jul 1, 2008 at 17:50, Fernando Perez [EMAIL PROTECTED] wrote:
On Tue, Jul 1, 2008 at 1:41 PM, Pauli Virtanen [EMAIL PROTECTED] wrote:
But it's a custom tweak to doctest, so it might break at some point in
the future, and I don't love the monkeypatching here...
On Tue, Jul 1, 2008 at 4:41 PM, Pauli Virtanen [EMAIL PROTECTED] wrote:
All in all, I'd estimate this to be ~100 lines, put in a suitable
location.
If possible, I'd like other possibilities be considered first before
jumping this route. I think it would be nice to retain the ability to run
On Tue, Jul 1, 2008 at 19:19, Ryan May [EMAIL PROTECTED] wrote:
Robert Kern wrote:
On Tue, Jul 1, 2008 at 17:50, Fernando Perez [EMAIL PROTECTED] wrote:
On Tue, Jul 1, 2008 at 1:41 PM, Pauli Virtanen [EMAIL PROTECTED] wrote:
But it's a custom tweak to doctest, so it might break at some point
Robert Kern wrote:
On Tue, Jul 1, 2008 at 19:19, Ryan May [EMAIL PROTECTED] wrote:
Robert Kern wrote:
On Tue, Jul 1, 2008 at 17:50, Fernando Perez [EMAIL PROTECTED] wrote:
On Tue, Jul 1, 2008 at 1:41 PM, Pauli Virtanen [EMAIL PROTECTED] wrote:
But it's a custom tweak to doctest, so it might
18 matches
Mail list logo