1010import numpy .testing as npt
1111import pandas as pd
1212import pytest
13+ from packaging .version import Version
1314from pygmt import x2sys_cross , x2sys_init
15+ from pygmt .clib import __gmt_version__
1416from pygmt .datasets import load_sample_data
1517from pygmt .exceptions import GMTInvalidInput
1618from pygmt .helpers import data_kind
@@ -55,6 +57,10 @@ def test_x2sys_cross_input_file_output_file():
5557
5658
5759@pytest .mark .usefixtures ("mock_x2sys_home" )
60+ @pytest .mark .xfail (
61+ condition = Version (__gmt_version__ ) < Version ("6.5.0" ),
62+ reason = "Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/8188" ,
63+ )
5864def test_x2sys_cross_input_file_output_dataframe ():
5965 """
6066 Run x2sys_cross by passing in a filename, and output internal crossovers to a
@@ -196,6 +202,10 @@ def test_x2sys_cross_invalid_tracks_input_type(tracks):
196202
197203
198204@pytest .mark .usefixtures ("mock_x2sys_home" )
205+ @pytest .mark .xfail (
206+ condition = Version (__gmt_version__ ) < Version ("6.5.0" ),
207+ reason = "Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/8188" ,
208+ )
199209def test_x2sys_cross_region_interpolation_numpoints ():
200210 """
201211 Test that x2sys_cross's region (R), interpolation (l) and numpoints (W) arguments
@@ -221,6 +231,10 @@ def test_x2sys_cross_region_interpolation_numpoints():
221231
222232
223233@pytest .mark .usefixtures ("mock_x2sys_home" )
234+ @pytest .mark .xfail (
235+ condition = Version (__gmt_version__ ) < Version ("6.5.0" ),
236+ reason = "Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/8188" ,
237+ )
224238def test_x2sys_cross_trackvalues ():
225239 """
226240 Test that x2sys_cross's trackvalues (Z) argument work.
0 commit comments