[Numpy-svn] r8313 - in trunk/numpy/f2py: . tests

numpy-svn@scip... numpy-svn@scip...
Tue Mar 30 22:45:36 CDT 2010


Author: cdavid
Date: 2010-03-30 22:45:36 -0500 (Tue, 30 Mar 2010)
New Revision: 8313

Modified:
   trunk/numpy/f2py/__init__.py
   trunk/numpy/f2py/tests/test_callback.py
   trunk/numpy/f2py/tests/test_mixed.py
   trunk/numpy/f2py/tests/test_return_character.py
   trunk/numpy/f2py/tests/test_return_complex.py
   trunk/numpy/f2py/tests/test_return_integer.py
   trunk/numpy/f2py/tests/test_return_logical.py
   trunk/numpy/f2py/tests/test_return_real.py
Log:
TST: mark slow f2py tests + add f2py test function.

Modified: trunk/numpy/f2py/__init__.py
===================================================================
--- trunk/numpy/f2py/__init__.py	2010-03-31 03:45:25 UTC (rev 8312)
+++ trunk/numpy/f2py/__init__.py	2010-03-31 03:45:36 UTC (rev 8313)
@@ -42,3 +42,7 @@
         try: os.remove(fname)
         except OSError: pass
     return s
+
+from numpy.testing import Tester
+test = Tester().test
+bench = Tester().bench

Modified: trunk/numpy/f2py/tests/test_callback.py
===================================================================
--- trunk/numpy/f2py/tests/test_callback.py	2010-03-31 03:45:25 UTC (rev 8312)
+++ trunk/numpy/f2py/tests/test_callback.py	2010-03-31 03:45:36 UTC (rev 8313)
@@ -33,6 +33,7 @@
        end
     """
 
+    @dec.slow
     def test_all(self):
         for name in "t,t2".split(","):
             self.check_function(name)

Modified: trunk/numpy/f2py/tests/test_mixed.py
===================================================================
--- trunk/numpy/f2py/tests/test_mixed.py	2010-03-31 03:45:25 UTC (rev 8312)
+++ trunk/numpy/f2py/tests/test_mixed.py	2010-03-31 03:45:36 UTC (rev 8313)
@@ -14,6 +14,7 @@
                _path('src', 'mixed', 'foo_fixed.f90'),
                _path('src', 'mixed', 'foo_free.f90')]
 
+    @dec.slow
     def test_all(self):
         assert self.module.bar11() == 11
         assert self.module.foo_fixed.bar12() == 12

Modified: trunk/numpy/f2py/tests/test_return_character.py
===================================================================
--- trunk/numpy/f2py/tests/test_return_character.py	2010-03-31 03:45:25 UTC (rev 8312)
+++ trunk/numpy/f2py/tests/test_return_character.py	2010-03-31 03:45:36 UTC (rev 8313)
@@ -72,6 +72,7 @@
        end
     """
 
+    @dec.slow
     def test_all(self):
         for name in "t0,t1,t5,s0,s1,s5,ss".split(","):
             self.check_function(getattr(self.module, name))
@@ -129,6 +130,7 @@
 end module f90_return_char
     """
 
+    @dec.slow
     def test_all(self):
         for name in "t0,t1,t5,ts,s0,s1,s5,ss".split(","):
             self.check_function(getattr(self.module.f90_return_char, name))

Modified: trunk/numpy/f2py/tests/test_return_complex.py
===================================================================
--- trunk/numpy/f2py/tests/test_return_complex.py	2010-03-31 03:45:25 UTC (rev 8312)
+++ trunk/numpy/f2py/tests/test_return_complex.py	2010-03-31 03:45:36 UTC (rev 8313)
@@ -97,6 +97,7 @@
        end
     """
 
+    @dec.slow
     def test_all(self):
         for name in "t0,t8,t16,td,s0,s8,s16,sd".split(","):
             self.check_function(getattr(self.module, name))
@@ -155,6 +156,7 @@
 end module f90_return_complex
     """
 
+    @dec.slow
     def test_all(self):
         for name in "t0,t8,t16,td,s0,s8,s16,sd".split(","):
             self.check_function(getattr(self.module.f90_return_complex, name))

Modified: trunk/numpy/f2py/tests/test_return_integer.py
===================================================================
--- trunk/numpy/f2py/tests/test_return_integer.py	2010-03-31 03:45:25 UTC (rev 8312)
+++ trunk/numpy/f2py/tests/test_return_integer.py	2010-03-31 03:45:36 UTC (rev 8313)
@@ -95,6 +95,7 @@
        end
     """
 
+    @dec.slow
     def test_all(self):
         for name in "t0,t1,t2,t4,t8,s0,s1,s2,s4,s8".split(","):
             self.check_function(getattr(self.module, name))
@@ -164,6 +165,7 @@
 end module f90_return_integer
     """
 
+    @dec.slow
     def test_all(self):
         for name in "t0,t1,t2,t4,t8,s0,s1,s2,s4,s8".split(","):
             self.check_function(getattr(self.module.f90_return_integer, name))

Modified: trunk/numpy/f2py/tests/test_return_logical.py
===================================================================
--- trunk/numpy/f2py/tests/test_return_logical.py	2010-03-31 03:45:25 UTC (rev 8312)
+++ trunk/numpy/f2py/tests/test_return_logical.py	2010-03-31 03:45:36 UTC (rev 8313)
@@ -105,6 +105,7 @@
 c       end
     """
 
+    @dec.slow
     def test_all(self):
         for name in "t0,t1,t2,t4,s0,s1,s2,s4".split(","):
             self.check_function(getattr(self.module, name))
@@ -173,6 +174,7 @@
 end module f90_return_logical
     """
 
+    @dec.slow
     def test_all(self):
         for name in "t0,t1,t2,t4,t8,s0,s1,s2,s4,s8".split(","):
             self.check_function(getattr(self.module.f90_return_logical, name))

Modified: trunk/numpy/f2py/tests/test_return_real.py
===================================================================
--- trunk/numpy/f2py/tests/test_return_real.py	2010-03-31 03:45:25 UTC (rev 8312)
+++ trunk/numpy/f2py/tests/test_return_real.py	2010-03-31 03:45:36 UTC (rev 8313)
@@ -77,6 +77,7 @@
 end python module c_ext_return_real
     """
 
+    @dec.slow
     def test_all(self):
         for name in "t4,t8,s4,s8".split(","):
             self.check_function(getattr(self.module, name))
@@ -130,6 +131,7 @@
        end
     """
 
+    @dec.slow
     def test_all(self):
         for name in "t0,t4,t8,td,s0,s4,s8,sd".split(","):
             self.check_function(getattr(self.module, name))
@@ -187,6 +189,7 @@
 end module f90_return_real
     """
 
+    @dec.slow
     def test_all(self):
         for name in "t0,t4,t8,td,s0,s4,s8,sd".split(","):
             self.check_function(getattr(self.module.f90_return_real, name))



More information about the Numpy-svn mailing list