Skip to content

Commit 99bc5d3

Browse files
authored
Mark three x2sys_cross as xfail on macOS (#3198)
1 parent 16b8945 commit 99bc5d3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pygmt/tests/test_x2sys_cross.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"""
44

55
import copy
6+
import sys
67
from pathlib import Path
78
from tempfile import TemporaryDirectory
89

@@ -59,7 +60,7 @@ def test_x2sys_cross_input_file_output_file():
5960

6061
@pytest.mark.usefixtures("mock_x2sys_home")
6162
@pytest.mark.xfail(
62-
condition=Version(__gmt_version__) < Version("6.5.0"),
63+
condition=Version(__gmt_version__) < Version("6.5.0") or sys.platform == "darwin",
6364
reason="Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/8188",
6465
)
6566
def test_x2sys_cross_input_file_output_dataframe():
@@ -200,7 +201,7 @@ def test_x2sys_cross_invalid_tracks_input_type(tracks):
200201

201202
@pytest.mark.usefixtures("mock_x2sys_home")
202203
@pytest.mark.xfail(
203-
condition=Version(__gmt_version__) < Version("6.5.0"),
204+
condition=Version(__gmt_version__) < Version("6.5.0") or sys.platform == "darwin",
204205
reason="Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/8188",
205206
)
206207
def test_x2sys_cross_region_interpolation_numpoints():
@@ -229,7 +230,7 @@ def test_x2sys_cross_region_interpolation_numpoints():
229230

230231
@pytest.mark.usefixtures("mock_x2sys_home")
231232
@pytest.mark.xfail(
232-
condition=Version(__gmt_version__) < Version("6.5.0"),
233+
condition=Version(__gmt_version__) < Version("6.5.0") or sys.platform == "darwin",
233234
reason="Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/8188",
234235
)
235236
def test_x2sys_cross_trackvalues():

0 commit comments

Comments
 (0)