Skip to content

Commit 7753b9c

Browse files
committed
Fix test_gmt_compat_6_is_applied
1 parent be9a202 commit 7753b9c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pygmt/tests/test_session_management.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ def test_gmt_compat_6_is_applied(capsys):
3636
"""
3737
end() # Kill the global session
3838
try:
39-
# Generate a gmt.conf file in the current directory
40-
# with GMT_COMPATIBILITY = 5
41-
with Session() as lib:
42-
lib.call_module("gmtset", ["GMT_COMPATIBILITY=5"])
39+
# Generate a gmt.conf file in the current directory with GMT_COMPATIBILITY = 5
40+
Path("gmt.conf").write_text("GMT_COMPATIBILITY = 5", encoding="utf-8")
4341
begin()
4442
with Session() as lib:
4543
lib.call_module("basemap", ["-R10/70/-3/8", "-JX4i/3i", "-Ba"])

0 commit comments

Comments
 (0)