From 6f69c7b3f5c6c70ba37fe56eac0068b2a19f93cc Mon Sep 17 00:00:00 2001
From: Frederik Hennig <frederik.hennig@fau.de>
Date: Mon, 28 Oct 2024 12:05:57 +0100
Subject: [PATCH] fix new tests in absence of cupy

---
 tests/test_sliced_iteration.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/test_sliced_iteration.py b/tests/test_sliced_iteration.py
index 0058f4f90..cc7b87a48 100644
--- a/tests/test_sliced_iteration.py
+++ b/tests/test_sliced_iteration.py
@@ -16,6 +16,9 @@ from pystencils.simp import sympy_cse_on_assignment_list
 
 @pytest.mark.parametrize("target", [Target.CPU, Target.GPU])
 def test_sliced_iteration(target):
+    if target == Target.GPU:
+        pytest.importorskip("cupy")
+
     size = (4, 4)
 
     dh = create_data_handling(size, default_target=target, default_ghost_layers=0)
-- 
GitLab