Skip to content

Commit f7a9e5e

Browse files
authored
Remove xfails on grdimage test for GMT 6.2.0rc2 (#1296)
Since `test_grdimage_shading_xarray` runs properly in GMT 6.2.0, the expected failure (xfail) marker can be removed.
1 parent 45887f1 commit f7a9e5e

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

pygmt/tests/test_grdimage.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
"""
22
Test Figure.grdimage.
33
"""
4-
import sys
5-
64
import numpy as np
75
import pytest
86
import xarray as xr
9-
from packaging.version import Version
10-
from pygmt import Figure, clib
7+
from pygmt import Figure
118
from pygmt.datasets import load_earth_relief
129
from pygmt.exceptions import GMTInvalidInput
1310
from pygmt.helpers.testing import check_figures_equal
1411

15-
with clib.Session() as _lib:
16-
gmt_version = Version(_lib.info["version"])
17-
1812

1913
@pytest.fixture(scope="module", name="grid")
2014
def fixture_grid():
@@ -82,14 +76,6 @@ def test_grdimage_file():
8276
return fig
8377

8478

85-
@pytest.mark.skipif(
86-
gmt_version <= Version("6.1.1") and sys.platform == "darwin",
87-
reason="Upstream bug in GMT 6.1.1 that causes segfault on macOS",
88-
)
89-
@pytest.mark.xfail(
90-
condition=gmt_version <= Version("6.1.1") and sys.platform != "darwin",
91-
reason="Upstream bug in GMT 6.1.1 that causes this test to fail on Linux/Windows",
92-
)
9379
@check_figures_equal()
9480
@pytest.mark.parametrize(
9581
"shading",

0 commit comments

Comments
 (0)