[SciPy-dev] scipy.test(1,10)

Pearu Peterson pearu at scipy.org
Tue Nov 15 01:11:09 CST 2005



On Tue, 15 Nov 2005, Nils Wagner wrote:

> Hi all,
>
> If I import scipy and run scipy.test(1,10) two times
>
> scipy.test(1,10)
> Ran 1348 tests in 8.735s
>
> OK
> scipy.test(1,10)
> Ran 1351 tests in 8.304s
>
> OK
>
> There is a difference in the number of tests, but for what reason ?

The additional three tests come from scipy.distutils. This is due to how 
scipy testing hooks work and is normal behaviour (tests are looked in 
imported modules and in the first run scipy.distutils has not been 
imported and so its tests are not found).

Pearu




More information about the Scipy-dev mailing list