File tree 1 file changed +1
-15
lines changed
1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change 1
1
"""
2
2
Test Figure.grdimage.
3
3
"""
4
- import sys
5
-
6
4
import numpy as np
7
5
import pytest
8
6
import xarray as xr
9
- from packaging .version import Version
10
- from pygmt import Figure , clib
7
+ from pygmt import Figure
11
8
from pygmt .datasets import load_earth_relief
12
9
from pygmt .exceptions import GMTInvalidInput
13
10
from pygmt .helpers .testing import check_figures_equal
14
11
15
- with clib .Session () as _lib :
16
- gmt_version = Version (_lib .info ["version" ])
17
-
18
12
19
13
@pytest .fixture (scope = "module" , name = "grid" )
20
14
def fixture_grid ():
@@ -82,14 +76,6 @@ def test_grdimage_file():
82
76
return fig
83
77
84
78
85
- @pytest .mark .skipif (
86
- gmt_version <= Version ("6.1.1" ) and sys .platform == "darwin" ,
87
- reason = "Upstream bug in GMT 6.1.1 that causes segfault on macOS" ,
88
- )
89
- @pytest .mark .xfail (
90
- condition = gmt_version <= Version ("6.1.1" ) and sys .platform != "darwin" ,
91
- reason = "Upstream bug in GMT 6.1.1 that causes this test to fail on Linux/Windows" ,
92
- )
93
79
@check_figures_equal ()
94
80
@pytest .mark .parametrize (
95
81
"shading" ,
You can’t perform that action at this time.
0 commit comments