summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authormdroe <mdroe@localhost>2010-02-22 20:54:57 +0000
committermdroe <mdroe@localhost>2010-02-22 20:54:57 +0000
commita1427e05649aa5b0eeebc9830230d5e8bf225e1e (patch)
tree4387b5e068f89e67868150abea1bf1a880e0eaf0 /numpy
parent755e6ebabdda26f8720d5881897d31379fe81586 (diff)
downloadnumpy-a1427e05649aa5b0eeebc9830230d5e8bf225e1e.tar.gz
Add very basic sanity test for getting include directories (related to ticket #1405)
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/tests/test_regression.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py
index 5111ab8aa..025ac49da 100644
--- a/numpy/core/tests/test_regression.py
+++ b/numpy/core/tests/test_regression.py
@@ -1271,5 +1271,15 @@ class TestRegression(TestCase):
# 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()