[Numpy-discussion] Code samples in docstrings mistaken as doctests

Stéfan van der Walt stefan at sun.ac.za
Mon Jun 23 19:43:36 EDT 2008


2008/6/24 Stéfan van der Walt <stefan at sun.ac.za>:
> It should be fairly easy to execute the example code, just to make
> sure it runs.  We can always work out a scheme to test its validity
> later.

Mike Hansen just explained to me that the Sage doctest system sets the
random seed before executing each test.  If we address

a) Random variables
b) Plotting representations and
c) Endianness

we're probably halfway there.

Regards
Stéfan



More information about the NumPy-Discussion mailing list