Skip to content

Commit c23a7d6

Browse files
authored
Remove unused global variable 'gmt_version' from tests (#1552)
1 parent a3ebfd5 commit c23a7d6

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

pygmt/tests/test_basemap.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@
22
Tests Figure.basemap.
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

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

139
def test_basemap_required_args():
1410
"""

pygmt/tests/test_clib.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
TEST_DATA_DIR = os.path.join(os.path.dirname(__file__), "data")
2828
POINTS_DATA = os.path.join(TEST_DATA_DIR, "points.txt")
2929

30-
with clib.Session() as _lib:
31-
gmt_version = Version(_lib.info["version"])
32-
3330

3431
@pytest.fixture(scope="module")
3532
def data():

pygmt/tests/test_clib_put_strings.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@
44
import numpy as np
55
import numpy.testing as npt
66
import pytest
7-
from packaging.version import Version
87
from pygmt import clib
98
from pygmt.exceptions import GMTCLibError
109
from pygmt.helpers import GMTTempFile
1110

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

1612
def test_put_strings():
1713
"""

0 commit comments

Comments
 (0)