From 75e4c42fc70a1a43657f81443c2a8b060f13ef56 Mon Sep 17 00:00:00 2001
From: Frederik Hennig <frederik.hennig@fau.de>
Date: Thu, 1 Oct 2020 11:32:06 +0200
Subject: [PATCH] Skip tests the pytest-way when cython not available

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

diff --git a/lbmpy_tests/test_boundary_indexlist_creation.py b/lbmpy_tests/test_boundary_indexlist_creation.py
index 68da641f..4646e276 100644
--- a/lbmpy_tests/test_boundary_indexlist_creation.py
+++ b/lbmpy_tests/test_boundary_indexlist_creation.py
@@ -8,7 +8,7 @@ import pytest
 @pytest.mark.parametrize('single_link', [False, True])
 def test_equivalence_cython_python_version(single_link):
     if not cil.cython_funcs_available:
-        return
+        pytest.skip("Skipped: Cython functions are not available.")
 
     stencil_2d = get_stencil("D2Q9")
     stencil_3d = get_stencil("D3Q19")
@@ -44,7 +44,7 @@ def test_equivalence_cython_python_version(single_link):
 @pytest.mark.parametrize('single_link', [False, True])
 def test_equivalence_cell_idx_list_cython_python_version(single_link):
     if not cil.cython_funcs_available:
-        return
+        pytest.skip("Skipped: Cython functions are not available.")
 
     stencil_2d = get_stencil("D2Q9")
     stencil_3d = get_stencil("D3Q19")
-- 
GitLab