Skip to content

Commit

Permalink
Fix test_gmt_compat_6_is_applied
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Aug 24, 2024
1 parent be9a202 commit 7753b9c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pygmt/tests/test_session_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ def test_gmt_compat_6_is_applied(capsys):
"""
end() # Kill the global session
try:
# Generate a gmt.conf file in the current directory
# with GMT_COMPATIBILITY = 5
with Session() as lib:
lib.call_module("gmtset", ["GMT_COMPATIBILITY=5"])
# Generate a gmt.conf file in the current directory with GMT_COMPATIBILITY = 5
Path("gmt.conf").write_text("GMT_COMPATIBILITY = 5", encoding="utf-8")
begin()
with Session() as lib:
lib.call_module("basemap", ["-R10/70/-3/8", "-JX4i/3i", "-Ba"])
Expand Down

0 comments on commit 7753b9c

Please sign in to comment.