diff --git a/test/test_fortran.py b/test/test_fortran.py index c7270abd29e4e68a110bc6ddc9efa4bc95a45823..b9db35c4715d08faae633f6505e1b32dbe110f13 100644 --- a/test/test_fortran.py +++ b/test/test_fortran.py @@ -42,7 +42,7 @@ __all__ = [ ] -pytestmark = pytest.mark.importorskip("fparser") +pytest.importorskip("fparser") def test_fill(ctx_factory): diff --git a/test/test_numa_diff.py b/test/test_numa_diff.py index 57d75b24b59fc7972fb529fa3e6f220c76d84095..0a254ecaaba22a85b4c52099dfb6964f58a9ed58 100644 --- a/test/test_numa_diff.py +++ b/test/test_numa_diff.py @@ -30,8 +30,6 @@ import pyopencl as cl import sys import os -pytestmark = pytest.mark.importorskip("fparser") - import logging logger = logging.getLogger(__name__) @@ -51,6 +49,7 @@ from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2 # noqa @pytest.mark.parametrize("Nq", [7]) @pytest.mark.parametrize("opt_level", [11]) def test_gnuma_horiz_kernel(ctx_factory, ilp_multiple, Nq, opt_level): # noqa + pytest.importorskip("fparser") ctx = ctx_factory() filename = os.path.join(os.path.dirname(__file__), "strongVolumeKernels.f90")