[SciPy-user] module_test replacement
Fri Jan 23 17:19:22 CST 2009
On Fri, Jan 23, 2009 at 17:13, chris <firstname.lastname@example.org> wrote:
> I've inherited some code that uses module_test and module_test_suite
> from scipy_test. As these things no longer exist, is there a
> functional equivalent I can use for a simple refactor? Or perhaps a
> nice workaround?
Just delete the test() and test_suite() functions that use them and
use nose as the test runner. Many of the test methods still use
"check_*" instead of "test_*" so you can configure nose to collect
those, too, or you can just search and replace to change them to
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the SciPy-user