[Numpy-svn] r8311 - in trunk/numpy: core/tests lib/tests

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


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

Modified:
   trunk/numpy/core/tests/test_regression.py
   trunk/numpy/lib/tests/test_regression.py
Log:
BUG: move test from core to lib, mark it as deprected.

Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2010-03-31 03:45:06 UTC (rev 8310)
+++ trunk/numpy/core/tests/test_regression.py	2010-03-31 03:45:16 UTC (rev 8311)
@@ -1279,16 +1279,6 @@
         # Just make sure this doesn't throw an exception
         numarray.handleError(0, "")
 
-    def test_include_dirs(self):
-        """As a sanity check, just test that get_include and
-        get_numarray_include include something reasonable.  Somewhat
-        related to ticket #1405."""
-        include_dirs = [np.get_include(), np.get_numarray_include(),
-                        np.get_numpy_include()]
-        for path in include_dirs:
-            assert isinstance(path, (str, unicode))
-            assert path != ''
-
     def test_0d_string_scalar(self):
         # Bug #1436; the following should succeed
         np.asarray('x', '>c')

Modified: trunk/numpy/lib/tests/test_regression.py
===================================================================
--- trunk/numpy/lib/tests/test_regression.py	2010-03-31 03:45:06 UTC (rev 8310)
+++ trunk/numpy/lib/tests/test_regression.py	2010-03-31 03:45:16 UTC (rev 8311)
@@ -170,5 +170,16 @@
         """Ticket #1387: empty array as input for bincount."""
         assert_raises(ValueError, lambda : np.bincount(np.array([], dtype=np.intp)))
 
+    @dec.deprecated()
+    def test_include_dirs(self):
+        """As a sanity check, just test that get_include and
+        get_numarray_include include something reasonable.  Somewhat
+        related to ticket #1405."""
+        include_dirs = [np.get_include(), np.get_numarray_include(),
+                        np.get_numpy_include()]
+        for path in include_dirs:
+            assert isinstance(path, (str, unicode))
+            assert path != ''
+
 if __name__ == "__main__":
     run_module_suite()



More information about the Numpy-svn mailing list