From c331857d8663ecf54bbe88c834755da749e8ab52 Mon Sep 17 00:00:00 2001 From: Alan McIntyre Date: Tue, 17 Jun 2008 00:23:20 +0000 Subject: Switched to use nose to run tests. Added test and bench functions to all modules. --- numpy/f2py/lib/tests/test_module_scalar.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'numpy/f2py/lib/tests/test_module_scalar.py') diff --git a/numpy/f2py/lib/tests/test_module_scalar.py b/numpy/f2py/lib/tests/test_module_scalar.py index 1ac4455be..684fab1b2 100644 --- a/numpy/f2py/lib/tests/test_module_scalar.py +++ b/numpy/f2py/lib/tests/test_module_scalar.py @@ -40,19 +40,19 @@ m, = compile(fortran_code, modulenames = ['test_module_scalar_ext']) from numpy import * -class TestM(NumpyTestCase): +class TestM(TestCase): - def check_foo_simple(self, level=1): + def test_foo_simple(self, level=1): foo = m.foo r = foo(2) assert isinstance(r,int32),`type(r)` assert_equal(r,3) - def check_foo2_simple(self, level=1): + def test_foo2_simple(self, level=1): foo2 = m.foo2 r = foo2(2) assert isinstance(r,int32),`type(r)` assert_equal(r,4) if __name__ == "__main__": - NumpyTest().run() + nose.run(argv=['', __file__]) -- cgit v1.2.1