[Numpy-svn] r8276 - trunk/numpy/f2py/tests

numpy-svn at scipy.org numpy-svn at scipy.org
Sat Mar 6 14:13:44 EST 2010


Author: ptvirtan
Date: 2010-03-06 13:13:43 -0600 (Sat, 06 Mar 2010)
New Revision: 8276

Modified:
   trunk/numpy/f2py/tests/test_array_from_pyobj.py
Log:
ENH: f2py: skip also test_array_from_pyobj if no C compiler is available

Modified: trunk/numpy/f2py/tests/test_array_from_pyobj.py
===================================================================
--- trunk/numpy/f2py/tests/test_array_from_pyobj.py	2010-03-06 19:12:31 UTC (rev 8275)
+++ trunk/numpy/f2py/tests/test_array_from_pyobj.py	2010-03-06 19:13:43 UTC (rev 8276)
@@ -3,6 +3,8 @@
 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 @@
 
     """
     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',




More information about the Numpy-svn mailing list