[SciPy-dev] Making numpy test work in scikits

David M. Cooke cookedm@physics.mcmaster...
Fri Jul 20 15:03:18 CDT 2007

"Matthieu Brucher" <matthieu.brucher@gmail.com> writes:

> Hi,
> I have to say that the fact that not all test_*.py are parsed for tests annoys
> me in Numpy. If you want to test a file something.py, you have to create a
> tests/test_something.py, you can't use an other name. And when you want to test
> more than just a part of your code - like for the optimizers, I want to test
> several modules together -, those tests are not part of the test suite that
> Numpy creates.

Yes, by default only tests/test_*.py are looked at when * is a module.
However, if you use either NumpyTest().testall() or
NumpyTest().test(all=True) or NumpyTest.test(level=(some number >10)),
then all the the *.py files in tests/ will be run.

Argubably, this should be the default.

|David M. Cooke              http://arbutus.physics.mcmaster.ca/dmc/

More information about the Scipy-dev mailing list