[Numpy-discussion] Doctest items
Tue Jul 1 14:20:32 CDT 2008
On Tue, Jul 1, 2008 at 14:14, Alan McIntyre <firstname.lastname@example.org> wrote:
> On Tue, Jul 1, 2008 at 2:45 PM, Robert Kern <email@example.com> 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 still be executed. matplotlib should not be a requirement for
>> running the tests.
> Oops, I misunderstood, then: I thought the intent was to execute the
> statement but not compare the output (because they returned objects
> that had their address in the repr).
> I didn't look before to see how many times this feature would be
> needed (yeah, should have done that before complaining about using
> #doctest: +SKIP), but now that I look, I only see one batch of plt.
> commands, in numpy.lib.function_base.bartlett. In view of that, does
> it make more sense to use the SKIP directive for the ten plt. lines in
> that one example?
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.
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion