[Numpy-discussion] More pending test framework changes (please give feedback)
Tue Jul 1 10:26:09 CDT 2008
On Mon, Jun 30, 2008 at 1:54 PM, Alan McIntyre <email@example.com> wrote:
> 1. All doctests in NumPy will have the numpy module available in their
> execution context as "np".
> 2. Turn on the normalized whitespace option for all doctests. Having
> a doctest fail just because there's a space after your result seems
> like an unnecessary hassle for documenters.
> 3. Output will be ignored for each doctest expected output line that
> contains "#random". I figured this can serve both as an ignore flag
> and indication to the reader that the listed output may differ from
> what they see if they execute the associated command. So you would be
> able to do:
> 0.1234567890 #random: output may differ on your system
> And have the example executed but not cause a failure. You could also
> use this to ignore the <SomeObject at 0x1234ABCD> output from plot
> methods as well.
Since I didn't see any objections, these changes are now committed.
I'll be updating some doctests to take advantage of them later today.
More information about the Numpy-discussion