diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-04-06 18:03:31 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-06 18:03:31 -0600 |
commit | 036151143bff1eebeded5582534e676a192352cd (patch) | |
tree | 8bc070f39accd6241c05c923b1364cafc4e0f700 /numpy/distutils/tests | |
parent | 70c060dfdab9e0c31eeec248ed40c26d3555033c (diff) | |
parent | fedcb3d1276f7f9ff92ef260ac1bfa6b31690742 (diff) | |
download | numpy-036151143bff1eebeded5582534e676a192352cd.tar.gz |
Merge pull request #10842 from charris/switch-to-pytest
TST: Switch to pytest
Diffstat (limited to 'numpy/distutils/tests')
-rw-r--r-- | numpy/distutils/tests/test_system_info.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/numpy/distutils/tests/test_system_info.py b/numpy/distutils/tests/test_system_info.py index c6a9b9915..bec606c44 100644 --- a/numpy/distutils/tests/test_system_info.py +++ b/numpy/distutils/tests/test_system_info.py @@ -2,13 +2,14 @@ from __future__ import division, print_function import os import shutil +import pytest from tempfile import mkstemp, mkdtemp from subprocess import Popen, PIPE from distutils.errors import DistutilsError from numpy.distutils import ccompiler, customized_ccompiler from numpy.testing import ( - run_module_suite, assert_, assert_equal, dec + run_module_suite, assert_, assert_equal ) from numpy.distutils.system_info import system_info, ConfigParser from numpy.distutils.system_info import default_lib_dirs, default_include_dirs @@ -201,7 +202,7 @@ class TestSystemInfoReading(object): extra = tsi.calc_extra_info() assert_equal(extra['extra_link_args'], ['-Wl,-rpath=' + self._lib2]) - @dec.skipif(not HAVE_COMPILER) + @pytest.mark.skipif(not HAVE_COMPILER, reason="Missing compiler") def test_compile1(self): # Compile source and link the first source c = customized_ccompiler() @@ -216,8 +217,9 @@ class TestSystemInfoReading(object): finally: os.chdir(previousDir) - @dec.skipif(not HAVE_COMPILER) - @dec.skipif('msvc' in repr(ccompiler.new_compiler())) + @pytest.mark.skipif(not HAVE_COMPILER, reason="Missing compiler") + @pytest.mark.skipif('msvc' in repr(ccompiler.new_compiler()), + reason="Fails with MSVC compiler ") def test_compile2(self): # Compile source and link the second source tsi = self.c_temp2 |