diff options
author | Evgeni Burovski <evgeni@burovski.me> | 2015-11-15 07:48:20 +0000 |
---|---|---|
committer | Evgeni Burovski <evgeni@burovski.me> | 2015-11-16 15:59:19 +0000 |
commit | 70c5052a9f07025c236033cf629506bb38eb6d97 (patch) | |
tree | 0fcffcf204b9ad1f0c2c351e7ad74d5bce83286d /numpy/f2py/tests/util.py | |
parent | cf66c68c6a560c934f4a767934573c7f85dcb4ae (diff) | |
download | numpy-70c5052a9f07025c236033cf629506bb38eb6d97.tar.gz |
ENH: testing: add SkipTest and KnownFailureException
* use SkipTest in numpy tests instead of importing it from nose
* add a KnownFailureException as an alias for KnownFailureTest
(the former is preferred, but the latter is kept for backcompat)
* rename the KnownFailure nose plugin into KnownFailurePlugin,
and keep the old name for backcompat
Diffstat (limited to 'numpy/f2py/tests/util.py')
-rw-r--r-- | numpy/f2py/tests/util.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/numpy/f2py/tests/util.py b/numpy/f2py/tests/util.py index 5b4e072e7..8d06d9680 100644 --- a/numpy/f2py/tests/util.py +++ b/numpy/f2py/tests/util.py @@ -17,10 +17,9 @@ import textwrap import re import random -import nose - from numpy.compat import asbytes, asstr import numpy.f2py +from numpy.testing import SkipTest try: from hashlib import md5 @@ -334,7 +333,7 @@ class F2PyTest(object): # Check compiler availability first if not has_c_compiler(): - raise nose.SkipTest("No C compiler available") + raise SkipTest("No C compiler available") codes = [] if self.sources: @@ -350,9 +349,9 @@ class F2PyTest(object): elif fn.endswith('.f90'): needs_f90 = True if needs_f77 and not has_f77_compiler(): - raise nose.SkipTest("No Fortran 77 compiler available") + raise SkipTest("No Fortran 77 compiler available") if needs_f90 and not has_f90_compiler(): - raise nose.SkipTest("No Fortran 90 compiler available") + raise SkipTest("No Fortran 90 compiler available") # Build the module if self.code is not None: |