[Numpy-svn] r8254 - trunk/numpy/core/tests

numpy-svn@scip... numpy-svn@scip...
Mon Feb 22 14:54:57 CST 2010


Author: mdroe
Date: 2010-02-22 14:54:57 -0600 (Mon, 22 Feb 2010)
New Revision: 8254

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Add very basic sanity test for getting include directories (related to ticket #1405)


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2010-02-22 19:36:24 UTC (rev 8253)
+++ trunk/numpy/core/tests/test_regression.py	2010-02-22 20:54:57 UTC (rev 8254)
@@ -1271,5 +1271,15 @@
         # 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 != ''
+
 if __name__ == "__main__":
     run_module_suite()



More information about the Numpy-svn mailing list