From 44a4014d0dc5bd08eecfeded947edd0853d03f53 Mon Sep 17 00:00:00 2001 From: Steven Murray Date: Thu, 2 May 2024 14:43:52 +0200 Subject: [PATCH] test: skip tests of multithreaded fftw when it is unavailable --- tests/test_fft.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_fft.py b/tests/test_fft.py index d6c5a66..a339c9c 100644 --- a/tests/test_fft.py +++ b/tests/test_fft.py @@ -136,7 +136,7 @@ def test_mixed_2d_fb(g2d, a, b, ainv, binv, backend): @pytest.mark.parametrize("a,b, ainv, binv", ABCOMBOS) @pytest.mark.parametrize("nthreads", (None, 1, 2, False)) def test_mixed_2d_bf(g2d, a, b, ainv, binv, nthreads): - pytest.skipif( + pytest.mark.skipif( not HAVE_FFTW_MULTITHREAD and nthreads == 2, reason="FFTW not installed with multithread", ) @@ -151,7 +151,7 @@ def test_mixed_2d_bf(g2d, a, b, ainv, binv, nthreads): @pytest.mark.parametrize("nthreads", (None, 1, 2, False)) def test_fftshift(nthreads): - pytest.skipif( + pytest.mark.skipif( not HAVE_FFTW_MULTITHREAD and nthreads == 2, reason="FFTW not installed with multithread", ) @@ -165,7 +165,7 @@ def test_fftshift(nthreads): @pytest.mark.parametrize("nthreads", (None, 1, 2, False)) @pytest.mark.parametrize("n", (10, 11)) def test_fftfreq(nthreads, n): - pytest.skipif( + pytest.mark.skipif( not HAVE_FFTW_MULTITHREAD and nthreads == 2, reason="FFTW not installed with multithread", )