Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions pygmt/tests/test_grdimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@
import numpy as np
import pytest
import xarray as xr
from packaging.version import Version

from .. import Figure
from .. import Figure, clib
from ..datasets import load_earth_relief
from ..exceptions import GMTInvalidInput
from ..helpers.testing import check_figures_equal

with clib.Session() as _lib:
gmt_version = Version(_lib.info["version"])


@pytest.fixture(scope="module", name="grid")
def fixture_grid():
Expand Down Expand Up @@ -69,7 +73,10 @@ def test_grdimage_file():
return fig


@pytest.mark.xfail(reason="Upstream bug in GMT 6.1.1")
@pytest.mark.xfail(
reason="Upstream bug in GMT 6.1.1",
condition=gmt_version <= Version("6.1.1"),
)
@check_figures_equal()
def test_grdimage_xarray_shading(grid):
"""
Expand Down