From 5c67f03b0e795905f13e2c34442cdd440ba97551 Mon Sep 17 00:00:00 2001 From: Ogi Moore Date: Thu, 15 Apr 2021 21:02:49 -0700 Subject: [PATCH] skip test without generating warning --- pyqtgraph/tests/test_makeARGB.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyqtgraph/tests/test_makeARGB.py b/pyqtgraph/tests/test_makeARGB.py index 0ee40646..d4b5d889 100644 --- a/pyqtgraph/tests/test_makeARGB.py +++ b/pyqtgraph/tests/test_makeARGB.py @@ -4290,12 +4290,10 @@ def test_makeARGB_against_generated_references(): _do_something_for_every_combo(assert_correct) +@pytest.mark.skipif(getCupy() is None, reason="CuPy unavailable to test") def test_cupy_makeARGB_against_generated_references(): setConfigOption("useCupy", True) cp = getCupy() - if cp is None: - pytest.skip("CuPy unavailable to test") - def assert_cupy_correct(data, key, levels, lut, scale, use_rgba): data = cp.asarray(data) if lut is not None: