diff --git a/pygmt/tests/test_basemap.py b/pygmt/tests/test_basemap.py index d9b52432549..726661ab165 100644 --- a/pygmt/tests/test_basemap.py +++ b/pygmt/tests/test_basemap.py @@ -2,13 +2,9 @@ Tests Figure.basemap. """ import pytest -from packaging.version import Version -from pygmt import Figure, clib +from pygmt import Figure from pygmt.exceptions import GMTInvalidInput -with clib.Session() as _lib: - gmt_version = Version(_lib.info["version"]) - def test_basemap_required_args(): """ diff --git a/pygmt/tests/test_clib.py b/pygmt/tests/test_clib.py index 22fd4d6d7b8..e88c04a874e 100644 --- a/pygmt/tests/test_clib.py +++ b/pygmt/tests/test_clib.py @@ -27,9 +27,6 @@ TEST_DATA_DIR = os.path.join(os.path.dirname(__file__), "data") POINTS_DATA = os.path.join(TEST_DATA_DIR, "points.txt") -with clib.Session() as _lib: - gmt_version = Version(_lib.info["version"]) - @pytest.fixture(scope="module") def data(): diff --git a/pygmt/tests/test_clib_put_strings.py b/pygmt/tests/test_clib_put_strings.py index 2e9e66ad858..a37ca3affe6 100644 --- a/pygmt/tests/test_clib_put_strings.py +++ b/pygmt/tests/test_clib_put_strings.py @@ -4,14 +4,10 @@ import numpy as np import numpy.testing as npt import pytest -from packaging.version import Version from pygmt import clib from pygmt.exceptions import GMTCLibError from pygmt.helpers import GMTTempFile -with clib.Session() as _lib: - gmt_version = Version(_lib.info["version"]) - def test_put_strings(): """