Skip to content

Commit c8e89b9

Browse files
authored
Remove unused gmt_version variable in tests (#1896)
1 parent d3183e4 commit c8e89b9

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

pygmt/tests/test_grdimage.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@
44
import numpy as np
55
import pytest
66
import xarray as xr
7-
from packaging.version import Version
8-
from pygmt import Figure, clib
7+
from pygmt import Figure
98
from pygmt.datasets import load_earth_relief
109
from pygmt.exceptions import GMTInvalidInput
1110
from pygmt.helpers.testing import check_figures_equal
1211

13-
with clib.Session() as _lib:
14-
gmt_version = Version(_lib.info["version"])
15-
1612

1713
@pytest.fixture(scope="module", name="grid")
1814
def fixture_grid():

pygmt/tests/test_legend.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22
Tests for legend.
33
"""
44
import pytest
5-
from packaging.version import Version
6-
from pygmt import Figure, clib
5+
from pygmt import Figure
76
from pygmt.exceptions import GMTInvalidInput
87
from pygmt.helpers import GMTTempFile
98

10-
with clib.Session() as _lib:
11-
gmt_version = Version(_lib.info["version"])
12-
139

1410
@pytest.mark.mpl_image_compare
1511
def test_legend_position():

0 commit comments

Comments
 (0)