[Numpy-discussion] How to write unit tests in distutils ?
David Cournapeau
david at ar.media.kyoto-u.ac.jp
Thu Oct 25 00:50:34 EDT 2007
David M. Cooke wrote:
> David Cournapeau <david at ar.media.kyoto-u.ac.jp> writes:
>
>
>> Hi,
>>
>> I would like to implement some unit tests for the code I am
>> producing for scons support. As the numpy unit test is part of
>> distutils, there is a bootstrap problem, and I am not sure I understand
>> how current unit tests work in distutils: can anyone enlighten me on
>> this one ?
>>
>
> You'd probably have better luck running them separately from the numpy
> unittests. e.g, 'import numpy.distutils; numpy.distutils.test()'.
> Numpy will have to be installed to do so (as opposed to running from the
> source directory). Installing numpy before running the tests is good
> practice, anyways.
>
>
Ok, I will do that, then. Thanks,
David
More information about the NumPy-Discussion
mailing list