From a1427e05649aa5b0eeebc9830230d5e8bf225e1e Mon Sep 17 00:00:00 2001 From: mdroe Date: Mon, 22 Feb 2010 20:54:57 +0000 Subject: Add very basic sanity test for getting include directories (related to ticket #1405) --- numpy/core/tests/test_regression.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'numpy') 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() -- cgit v1.2.1