[SciPy-dev] Making numpy test work in scikits
David M. Cooke
cookedm at physics.mcmaster.ca
Fri Jul 20 16:03:18 EDT 2007
"Matthieu Brucher" <matthieu.brucher at 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/
|cookedm at physics.mcmaster.ca
More information about the SciPy-Dev
mailing list