diff options
author | Ralf Gommers <ralf.gommers@googlemail.com> | 2016-06-12 21:31:08 +0200 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@googlemail.com> | 2016-06-12 21:31:08 +0200 |
commit | a52d2fa765096f1afd6c477e0f51ec3d6cb55814 (patch) | |
tree | ec24c278a0e32c6ad85669c877e24211c7c89ce0 /numpy/distutils/tests | |
parent | 76c27b5d2a28657062b2dcebba062f1941e4955f (diff) | |
download | numpy-a52d2fa765096f1afd6c477e0f51ec3d6cb55814.tar.gz |
BUG: fix issue on OS X with Python 3.x where npymath.ini was not installed.
Closes gh-7707. Happened for `pip install .` or another location (including a
remote git repo).
Diffstat (limited to 'numpy/distutils/tests')
-rw-r--r-- | numpy/distutils/tests/test_misc_util.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/numpy/distutils/tests/test_misc_util.py b/numpy/distutils/tests/test_misc_util.py index c50b9480b..3e97b6fe2 100644 --- a/numpy/distutils/tests/test_misc_util.py +++ b/numpy/distutils/tests/test_misc_util.py @@ -4,7 +4,7 @@ from __future__ import division, absolute_import, print_function from os.path import join, sep, dirname from numpy.distutils.misc_util import ( - appendpath, minrelpath, gpaths, get_shared_lib_extension + appendpath, minrelpath, gpaths, get_shared_lib_extension, get_info ) from numpy.testing import ( TestCase, run_module_suite, assert_, assert_equal @@ -75,5 +75,12 @@ class TestSharedExtension(TestCase): # just check for no crash assert_(get_shared_lib_extension(is_python_ext=True)) + +def test_installed_npymath_ini(): + # Regression test for gh-7707. If npymath.ini wasn't installed, then this + # will give an error. + info = get_info('npymath') + + if __name__ == "__main__": run_module_suite() |