Skip to content

Commit c6860b2

Browse files
committed
Temporarily revert the changes in test_grdfill.py
1 parent b0e6c69 commit c6860b2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pygmt/tests/test_grdfill.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
import numpy as np
88
import pytest
99
import xarray as xr
10+
from packaging.version import Version
1011
from pygmt import grdfill, load_dataarray
12+
from pygmt.clib import __gmt_version__
1113
from pygmt.exceptions import GMTInvalidInput
1214
from pygmt.helpers import GMTTempFile
1315
from pygmt.helpers.testing import load_static_earth_relief
@@ -84,11 +86,16 @@ def test_grdfill_dataarray_out(grid, expected_grid):
8486
xr.testing.assert_allclose(a=result, b=expected_grid)
8587

8688

89+
@pytest.mark.skipif(
90+
Version(__gmt_version__) < Version("6.4.0"),
91+
reason="Upstream bug/crash fixed in https://github.com/GenericMappingTools/gmt/pull/6418.",
92+
)
8793
def test_grdfill_asymmetric_pad(grid, expected_grid):
8894
"""
8995
Test grdfill using a region that includes the edge of the grid.
9096
91-
Regression test for https://github.com/GenericMappingTools/pygmt/issues/1745.
97+
Regression test for
98+
https://github.com/GenericMappingTools/pygmt/issues/1745.
9299
"""
93100
result = grdfill(grid=grid, mode="c20", region=[-55, -50, -24, -16])
94101
# check information of the output grid

0 commit comments

Comments
 (0)