diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-03-06 19:13:43 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-03-06 19:13:43 +0000 |
commit | c51146be95148e43603dabc94758ee45321ba3f6 (patch) | |
tree | 866468a8accd9e7b585651dc4ce9869b8c58cec1 /numpy/f2py/tests/test_array_from_pyobj.py | |
parent | 5b0621d1990048d4b5e0c3108273a96a9940211f (diff) | |
download | numpy-c51146be95148e43603dabc94758ee45321ba3f6.tar.gz |
ENH: f2py: skip also test_array_from_pyobj if no C compiler is available
Diffstat (limited to 'numpy/f2py/tests/test_array_from_pyobj.py')
-rw-r--r-- | numpy/f2py/tests/test_array_from_pyobj.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/f2py/tests/test_array_from_pyobj.py b/numpy/f2py/tests/test_array_from_pyobj.py index 7db481981..3b11a5b14 100644 --- a/numpy/f2py/tests/test_array_from_pyobj.py +++ b/numpy/f2py/tests/test_array_from_pyobj.py @@ -3,6 +3,8 @@ import os import sys import copy +import nose + from numpy.testing import * from numpy import array, alltrue, ndarray, asarray, can_cast,zeros, dtype from numpy.core.multiarray import typeinfo @@ -16,6 +18,11 @@ def setup(): """ global wrap + + # Check compiler availability first + if not util.has_c_compiler(): + raise nose.SkipTest("No C compiler available") + if wrap is None: config_code = """ config.add_extension('test_array_from_pyobj_ext', |