From f14f3e04d7c2c2d1e34116559050ca559b42f1d1 Mon Sep 17 00:00:00 2001
From: Frederik Hennig <frederik.hennig@fau.de>
Date: Thu, 1 Oct 2020 11:39:22 +0200
Subject: [PATCH] skip tests using skipif decorator

---
 lbmpy_tests/test_boundary_indexlist_creation.py | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/lbmpy_tests/test_boundary_indexlist_creation.py b/lbmpy_tests/test_boundary_indexlist_creation.py
index 4646e276..12d0d237 100644
--- a/lbmpy_tests/test_boundary_indexlist_creation.py
+++ b/lbmpy_tests/test_boundary_indexlist_creation.py
@@ -6,10 +6,8 @@ from lbmpy.stencils import get_stencil
 import pytest
 
 @pytest.mark.parametrize('single_link', [False, True])
+@pytest.mark.skipif(not cil.cython_funcs_available, reason='Cython functions are not available')
 def test_equivalence_cython_python_version(single_link):
-    if not cil.cython_funcs_available:
-        pytest.skip("Skipped: Cython functions are not available.")
-
     stencil_2d = get_stencil("D2Q9")
     stencil_3d = get_stencil("D3Q19")
 
@@ -42,10 +40,8 @@ def test_equivalence_cython_python_version(single_link):
         np.testing.assert_equal(result_python_3d, result_cython_3d)
 
 @pytest.mark.parametrize('single_link', [False, True])
+@pytest.mark.skipif(not cil.cython_funcs_available, reason='Cython functions are not available')
 def test_equivalence_cell_idx_list_cython_python_version(single_link):
-    if not cil.cython_funcs_available:
-        pytest.skip("Skipped: Cython functions are not available.")
-
     stencil_2d = get_stencil("D2Q9")
     stencil_3d = get_stencil("D3Q19")
 
-- 
GitLab