10
10
import numpy .testing as npt
11
11
import pandas as pd
12
12
import pytest
13
+ from packaging .version import Version
13
14
from pygmt import x2sys_cross , x2sys_init
15
+ from pygmt .clib import __gmt_version__
14
16
from pygmt .datasets import load_sample_data
15
17
from pygmt .exceptions import GMTInvalidInput
16
18
from pygmt .helpers import data_kind
@@ -55,6 +57,10 @@ def test_x2sys_cross_input_file_output_file():
55
57
56
58
57
59
@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
+ )
58
64
def test_x2sys_cross_input_file_output_dataframe ():
59
65
"""
60
66
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):
196
202
197
203
198
204
@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
+ )
199
209
def test_x2sys_cross_region_interpolation_numpoints ():
200
210
"""
201
211
Test that x2sys_cross's region (R), interpolation (l) and numpoints (W) arguments
@@ -221,6 +231,10 @@ def test_x2sys_cross_region_interpolation_numpoints():
221
231
222
232
223
233
@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
+ )
224
238
def test_x2sys_cross_trackvalues ():
225
239
"""
226
240
Test that x2sys_cross's trackvalues (Z) argument work.
0 commit comments