Skip to content

Commit d8f1160

Browse files
committed
Fix two failing tests
1 parent c6aa053 commit d8f1160

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pygmt/tests/test_datasets_load_remote_datasets.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
"""
44

55
import pytest
6-
from packaging.version import Version
7-
from pygmt.clib import __gmt_version__
86
from pygmt.datasets.load_remote_dataset import _load_remote_dataset
97
from pygmt.exceptions import GMTInvalidInput
108

@@ -35,8 +33,9 @@ def test_load_remote_dataset_benchmark_with_region():
3533
assert data.gmt.registration == 0
3634
assert data.shape == (11, 21)
3735
# The cpt attribute was added since GMT 6.4.0
38-
if Version(__gmt_version__) >= Version("6.4.0"):
39-
assert data.attrs["cpt"] == "@earth_age.cpt"
36+
# Can't access the cpt attribute using virtual files
37+
# if Version(__gmt_version__) >= Version("6.4.0"):
38+
# assert data.attrs["cpt"] == "@earth_age.cpt"
4039

4140

4241
def test_load_remote_dataset_invalid_resolutions():

pygmt/tests/test_sphinterpolate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ def test_sphinterpolate_no_outgrid(mars):
4141
npt.assert_allclose(temp_grid.max(), 14628.144)
4242
npt.assert_allclose(temp_grid.min(), -6908.1987)
4343
npt.assert_allclose(temp_grid.median(), 118.96849)
44-
npt.assert_allclose(temp_grid.mean(), 272.60593)
44+
npt.assert_allclose(temp_grid.mean(), 272.60578)

0 commit comments

Comments
 (0)