Skip to content

Commit 66461c4

Browse files
seismanweiji14
andauthored
Mark tests test_accessor_sliced_datacube and test_grdview_drapegrid_dataarray as xfail (#2075)
Co-authored-by: Wei Ji <[email protected]>
1 parent 2dc1f83 commit 66461c4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

pygmt/tests/test_accessor.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Test the behaviour of the GMTDataArrayAccessor class.
33
"""
44
import os
5+
import sys
56

67
import pytest
78
import xarray as xr
@@ -78,6 +79,11 @@ def test_accessor_set_non_boolean():
7879
gmt_version < Version("6.4.0"),
7980
reason="Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/6615",
8081
)
82+
@pytest.mark.xfail(
83+
condition=sys.platform == "win32",
84+
reason="PermissionError on Windows when deleting eraint_uvz.nc file; "
85+
"see https://github.com/GenericMappingTools/pygmt/pull/2073",
86+
)
8187
def test_accessor_sliced_datacube():
8288
"""
8389
Check that a 2D grid which is sliced from an n-dimensional datacube works

pygmt/tests/test_grdview.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ def test_grdview_on_a_plane_styled_with_facadepen(xrgrid):
214214
return fig
215215

216216

217+
@pytest.mark.xfail(
218+
reason="Generated images are different from the baseline images on three platforms. "
219+
"See https://github.com/GenericMappingTools/pygmt/issues/2062#issuecomment-1220680290"
220+
)
217221
@pytest.mark.mpl_image_compare
218222
def test_grdview_drapegrid_dataarray(xrgrid):
219223
"""

0 commit comments

Comments
 (0)