Skip to content

Commit 6b2f09c

Browse files
committed
Mark tests as skip because diffing is not appropriate here
1 parent cdaabce commit 6b2f09c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_vtk_writing.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from fidimag.common.field import scalar_field, vector_field
66
from fidimag.common.vtk import VTK
77
import pyvtk
8+
import pytest
89

910
MODULE_DIR = os.path.realpath(os.path.dirname(__file__))
1011
REF_DIR = os.path.dirname(__file__) + '/vtk_refs/'
@@ -25,23 +26,23 @@ def same_as_ref(filepath, ref_dir):
2526

2627
return ret == 0 # 0 means files are the same, c.f. man diff exit codes
2728

28-
29+
@pytest.mark.skip(reason="Need a better way to test; precision means comparing diffs does not work.")
2930
def test_save_scalar_field(tmpdir):
3031
mesh = CuboidMesh(4, 3, 2, 4, 3, 2)
3132
s = scalar_field(mesh, lambda r: r[0] + r[1] + r[2])
3233
vtk = VTK(mesh, directory=str(tmpdir), filename="save_scalar")
3334
vtk.save_scalar(s, name="s")
3435
assert same_as_ref(vtk.write_file(), REF_DIR)
3536

36-
37+
@pytest.mark.skip(reason="Need a better way to test; precision means comparing diffs does not work.")
3738
def test_save_vector_field(tmpdir):
3839
mesh = CuboidMesh(4, 3, 2, 4, 3, 2)
3940
s = vector_field(mesh, lambda r: (r[0], r[1], r[2]))
4041
vtk = VTK(mesh, directory=str(tmpdir), filename="save_vector")
4142
vtk.save_vector(s, name="s")
4243
assert same_as_ref(vtk.write_file(), REF_DIR)
4344

44-
45+
@pytest.mark.skip(reason="Need a better way to test; precision means comparing diffs does not work.")
4546
def test_save_scalar_field_hexagonal_mesh(tmpdir):
4647
mesh = HexagonalMesh(1, 3, 3)
4748
s = scalar_field(mesh, lambda r: r[0] + r[1])

0 commit comments

Comments
 (0)