mark tests skipped on win32 really as SKIPPED and not as PASSED

This commit is contained in:
Radovan Bast 2015-08-07 16:55:50 +02:00
parent 56c2891350
commit c7054178b4

View File

@ -6,9 +6,13 @@ import shutil
import sys import sys
import time import time
import datetime import datetime
import pytest
HERE = os.path.abspath(os.path.dirname(__file__)) HERE = os.path.abspath(os.path.dirname(__file__))
no_windows = pytest.mark.skipif(sys.platform == 'win32',
reason="windows not supported")
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
@ -155,29 +159,23 @@ def test_fc_int64():
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
@no_windows
def test_fc_mpi(): def test_fc_mpi():
if sys.platform != 'win32':
stdout, stderr = configure_build_and_exe('fc_mpi', 'python setup.py --mpi --fc=mpif90', 'mpirun -np 2') stdout, stderr = configure_build_and_exe('fc_mpi', 'python setup.py --mpi --fc=mpif90', 'mpirun -np 2')
assert 'PASSED' in stdout assert 'PASSED' in stdout
else:
pass
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
@no_windows
def test_fc_blas(): def test_fc_blas():
if sys.platform != 'win32':
stdout, stderr = configure_build_and_exe('fc_blas', 'python setup.py --fc=gfortran') stdout, stderr = configure_build_and_exe('fc_blas', 'python setup.py --fc=gfortran')
assert 'PASSED' in stdout assert 'PASSED' in stdout
else:
pass
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
@no_windows
def test_fc_lapack(): def test_fc_lapack():
if sys.platform != 'win32':
stdout, stderr = configure_build_and_exe('fc_lapack', 'python setup.py --fc=gfortran') stdout, stderr = configure_build_and_exe('fc_lapack', 'python setup.py --fc=gfortran')
assert 'PASSED' in stdout assert 'PASSED' in stdout
else:
pass