summaryrefslogtreecommitdiff
path: root/numpy/f2py/lib/tests/test_module_scalar.py
diff options
context:
space:
mode:
authorAlan McIntyre <alan.mcintyre@local>2008-06-17 00:23:20 +0000
committerAlan McIntyre <alan.mcintyre@local>2008-06-17 00:23:20 +0000
commitc331857d8663ecf54bbe88c834755da749e8ab52 (patch)
treef4cc69ec328a5ff4d3b108f3610acb119a196493 /numpy/f2py/lib/tests/test_module_scalar.py
parent22ba7886a84dc6a16ca75871f7cd2f10ef8de1f9 (diff)
downloadnumpy-c331857d8663ecf54bbe88c834755da749e8ab52.tar.gz
Switched to use nose to run tests. Added test and bench functions to all modules.
Diffstat (limited to 'numpy/f2py/lib/tests/test_module_scalar.py')
-rw-r--r--numpy/f2py/lib/tests/test_module_scalar.py8
1 files changed, 4 insertions, 4 deletions
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__])