Skip to content

Commit

Permalink
Remove unused global variable 'gmt_version' from tests (GenericMappin…
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman authored and Josh Sixsmith committed Dec 21, 2022
1 parent 9f1bfd5 commit 0887243
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
6 changes: 1 addition & 5 deletions pygmt/tests/test_basemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
"""
Expand Down
3 changes: 0 additions & 3 deletions pygmt/tests/test_clib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
4 changes: 0 additions & 4 deletions pygmt/tests/test_clib_put_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
"""
Expand Down

0 comments on commit 0887243

Please sign in to comment.