Skip to content

Commit

Permalink
test: skip tests of multithreaded fftw when it is unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed May 2, 2024
1 parent 24a553c commit 44a4014
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_fft.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand All @@ -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",
)
Expand All @@ -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",
)
Expand Down

0 comments on commit 44a4014

Please sign in to comment.