Skip to content

Commit

Permalink
Temporarily revert the changes in test_grdfill.py
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Sep 24, 2024
1 parent b0e6c69 commit c6860b2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pygmt/tests/test_grdfill.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
import numpy as np
import pytest
import xarray as xr
from packaging.version import Version
from pygmt import grdfill, load_dataarray
from pygmt.clib import __gmt_version__
from pygmt.exceptions import GMTInvalidInput
from pygmt.helpers import GMTTempFile
from pygmt.helpers.testing import load_static_earth_relief
Expand Down Expand Up @@ -84,11 +86,16 @@ def test_grdfill_dataarray_out(grid, expected_grid):
xr.testing.assert_allclose(a=result, b=expected_grid)


@pytest.mark.skipif(
Version(__gmt_version__) < Version("6.4.0"),
reason="Upstream bug/crash fixed in https://github.com/GenericMappingTools/gmt/pull/6418.",
)
def test_grdfill_asymmetric_pad(grid, expected_grid):
"""
Test grdfill using a region that includes the edge of the grid.
Regression test for https://github.com/GenericMappingTools/pygmt/issues/1745.
Regression test for
https://github.com/GenericMappingTools/pygmt/issues/1745.
"""
result = grdfill(grid=grid, mode="c20", region=[-55, -50, -24, -16])
# check information of the output grid
Expand Down

0 comments on commit c6860b2

Please sign in to comment.