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
16 changes: 1 addition & 15 deletions pygmt/tests/test_grdimage.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
"""
Test Figure.grdimage.
"""
import sys

import numpy as np
import pytest
import xarray as xr
from packaging.version import Version
from pygmt import Figure, clib
from pygmt import Figure
from pygmt.datasets import load_earth_relief
from pygmt.exceptions import GMTInvalidInput
from pygmt.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 @@ -82,14 +76,6 @@ def test_grdimage_file():
return fig


@pytest.mark.skipif(
gmt_version <= Version("6.1.1") and sys.platform == "darwin",
reason="Upstream bug in GMT 6.1.1 that causes segfault on macOS",
)
@pytest.mark.xfail(
condition=gmt_version <= Version("6.1.1") and sys.platform != "darwin",
reason="Upstream bug in GMT 6.1.1 that causes this test to fail on Linux/Windows",
)
@check_figures_equal()
@pytest.mark.parametrize(
"shading",
Expand Down