From ef185b4e48f0c0ca40aaba84c928289995537f45 Mon Sep 17 00:00:00 2001
From: zy69guqi <richard.angersbach@fau.de>
Date: Mon, 17 Feb 2025 18:18:42 +0100
Subject: [PATCH] Fix ImportError for cupy

---
 tests/kernelcreation/test_reduction.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/kernelcreation/test_reduction.py b/tests/kernelcreation/test_reduction.py
index 9fd385e02..1824ea095 100644
--- a/tests/kernelcreation/test_reduction.py
+++ b/tests/kernelcreation/test_reduction.py
@@ -1,6 +1,10 @@
 import pytest
 import numpy as np
-import cupy as cp
+
+try:
+    import cupy as cp
+except ImportError:
+    pass
 
 import pystencils as ps
 from pystencils.sympyextensions import reduction_assignment_from_str
-- 
GitLab