Skip to content

Commit

Permalink
Mark tests test_accessor_sliced_datacube and test_grdview_drapegrid_d…
Browse files Browse the repository at this point in the history
…ataarray as xfail (GenericMappingTools#2075)

Co-authored-by: Wei Ji <[email protected]>
  • Loading branch information
2 people authored and Josh Sixsmith committed Dec 21, 2022
1 parent 995a20f commit bd5e3e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pygmt/tests/test_accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Test the behaviour of the GMTDataArrayAccessor class.
"""
import os
import sys

import pytest
import xarray as xr
Expand Down Expand Up @@ -78,6 +79,11 @@ def test_accessor_set_non_boolean():
gmt_version < Version("6.4.0"),
reason="Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/6615",
)
@pytest.mark.xfail(
condition=sys.platform == "win32",
reason="PermissionError on Windows when deleting eraint_uvz.nc file; "
"see https://github.com/GenericMappingTools/pygmt/pull/2073",
)
def test_accessor_sliced_datacube():
"""
Check that a 2D grid which is sliced from an n-dimensional datacube works
Expand Down
4 changes: 4 additions & 0 deletions pygmt/tests/test_grdview.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ def test_grdview_on_a_plane_styled_with_facadepen(xrgrid):
return fig


@pytest.mark.xfail(
reason="Generated images are different from the baseline images on three platforms. "
"See https://github.com/GenericMappingTools/pygmt/issues/2062#issuecomment-1220680290"
)
@pytest.mark.mpl_image_compare
def test_grdview_drapegrid_dataarray(xrgrid):
"""
Expand Down

0 comments on commit bd5e3e0

Please sign in to comment.