Skip to content
Snippets Groups Projects
Commit d69f5d11 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

xfail and skip (due to old pytest version)

parent 0b15e10c
No related merge requests found
...@@ -11,11 +11,11 @@ import itertools ...@@ -11,11 +11,11 @@ import itertools
from os.path import dirname, join from os.path import dirname, join
import numpy as np import numpy as np
import pycuda.autoinit # NOQA
import pycuda.gpuarray as gpuarray
import pytest import pytest
import sympy import sympy
import pycuda.autoinit # NOQA
import pycuda.gpuarray as gpuarray
import pystencils import pystencils
from pystencils.interpolation_astnodes import LinearInterpolator from pystencils.interpolation_astnodes import LinearInterpolator
from pystencils.spatial_coordinates import x_, y_ from pystencils.spatial_coordinates import x_, y_
...@@ -143,10 +143,17 @@ def test_rotate_interpolation_gpu(dtype, address_mode, use_textures): ...@@ -143,10 +143,17 @@ def test_rotate_interpolation_gpu(dtype, address_mode, use_textures):
f"out {address_mode} texture:{use_textures} {type_map[dtype]}") f"out {address_mode} texture:{use_textures} {type_map[dtype]}")
@pytest.mark.parametrize('address_mode', ['border', 'wrap', 'clamp', 'mirror']) @pytest.mark.parametrize('address_mode', ['border', 'wrap',
pytest.param('warp', marks=pytest.mark.xfail(
reason="% printed as fmod on old sympy")),
pytest.param('mirror', marks=pytest.mark.xfail(
reason="% printed as fmod on old sympy")),
])
@pytest.mark.parametrize('dtype', [np.float64, np.float32, np.int32]) @pytest.mark.parametrize('dtype', [np.float64, np.float32, np.int32])
@pytest.mark.parametrize('use_textures', ('use_textures', False,)) @pytest.mark.parametrize('use_textures', ('use_textures', False,))
def test_shift_interpolation_gpu(address_mode, dtype, use_textures): def test_shift_interpolation_gpu(address_mode, dtype, use_textures):
if int(sympy.__version__.replace('.', '')) < 12 and address_mode in ['mirror', 'warp']:
pytest.skip()
rotation_angle = 0 # sympy.pi / 5 rotation_angle = 0 # sympy.pi / 5
scale = 1 scale = 1
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment