12
12
import numpy .testing as npt
13
13
import pandas as pd
14
14
import pytest
15
- from packaging .version import Version
16
15
from pygmt import config , x2sys_cross , x2sys_init
17
- from pygmt .clib import __gmt_version__
18
16
from pygmt .datasets import load_sample_data
19
17
from pygmt .exceptions import GMTTypeError
20
18
@@ -38,12 +36,7 @@ def fixture_tracks():
38
36
return [dataframe .query (expr = "z > -20" )] # reduce size of dataset
39
37
40
38
41
- # TODO(GMT>=6.5.0): Remove the xfail marker for the upstream bug fixed in GMT 6.5.0.
42
39
@pytest .mark .usefixtures ("mock_x2sys_home" )
43
- @pytest .mark .xfail (
44
- condition = Version (__gmt_version__ ) < Version ("6.5.0" ),
45
- reason = "Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/8188" ,
46
- )
47
40
def test_x2sys_cross_input_file_output_file ():
48
41
"""
49
42
Run x2sys_cross by passing in a filename, and output internal crossovers to an ASCII
@@ -68,12 +61,7 @@ def test_x2sys_cross_input_file_output_file():
68
61
npt .assert_allclose (result ["i_1" ].max (), 82945.9370 , rtol = 1.0e-4 )
69
62
70
63
71
- # TODO(GMT>=6.5.0): Remove the xfail marker for the upstream bug fixed in GMT 6.5.0.
72
64
@pytest .mark .usefixtures ("mock_x2sys_home" )
73
- @pytest .mark .xfail (
74
- condition = Version (__gmt_version__ ) < Version ("6.5.0" ),
75
- reason = "Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/8188" ,
76
- )
77
65
def test_x2sys_cross_input_file_output_dataframe ():
78
66
"""
79
67
Run x2sys_cross by passing in a filename, and output internal crossovers to a
@@ -247,12 +235,7 @@ def test_x2sys_cross_invalid_tracks_input_type(tracks):
247
235
x2sys_cross (tracks = [invalid_tracks ])
248
236
249
237
250
- # TODO(GMT>=6.5.0): Remove the xfail marker for the upstream bug fixed in GMT 6.5.0.
251
238
@pytest .mark .usefixtures ("mock_x2sys_home" )
252
- @pytest .mark .xfail (
253
- condition = Version (__gmt_version__ ) < Version ("6.5.0" ),
254
- reason = "Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/8188" ,
255
- )
256
239
def test_x2sys_cross_region_interpolation_numpoints ():
257
240
"""
258
241
Test that x2sys_cross's region (R), interpolation (l) and numpoints (W) arguments
@@ -283,12 +266,7 @@ def test_x2sys_cross_region_interpolation_numpoints():
283
266
npt .assert_allclose (output .z_M .mean (), - 2896.875915 , rtol = 1e-4 )
284
267
285
268
286
- # TODO(GMT>=6.5.0): Remove the xfail marker for the upstream bug fixed in GMT 6.5.0.
287
269
@pytest .mark .usefixtures ("mock_x2sys_home" )
288
- @pytest .mark .xfail (
289
- condition = Version (__gmt_version__ ) < Version ("6.5.0" ),
290
- reason = "Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/8188" ,
291
- )
292
270
def test_x2sys_cross_trackvalues ():
293
271
"""
294
272
Test that x2sys_cross's trackvalues (Z) argument work.
0 commit comments