[Numpy-discussion] A couple of testing issues

Alan McIntyre alan.mcintyre at gmail.com
Wed Jul 9 02:57:58 EDT 2008


Hi all,

I wanted to point out a couple of things about the new test framework
that you should keep in mind if you're writing tests:

- Don't use NumpyTestCase any more, just use TestCase (which is
available if you do from numpy.testing import *).  Using NumpyTestCase
now causes a deprecation warning.
- Test functions and methods will only be picked up based on name if
they begin with "test"; "check_*" will no longer be seen as a test
function.

I figured I should mention these since there probably hasn't been a
general announcement about the testing changes.

Thanks,
Alan



More information about the NumPy-Discussion mailing list