diff options
author | mdroe <mdroe@localhost> | 2010-02-22 20:54:57 +0000 |
---|---|---|
committer | mdroe <mdroe@localhost> | 2010-02-22 20:54:57 +0000 |
commit | a1427e05649aa5b0eeebc9830230d5e8bf225e1e (patch) | |
tree | 4387b5e068f89e67868150abea1bf1a880e0eaf0 /numpy | |
parent | 755e6ebabdda26f8720d5881897d31379fe81586 (diff) | |
download | numpy-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.py | 10 |
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() |