Skip to content

Mark xarray shading test fail for GMT<=6.1.1 #649

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 15, 2020
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