Skip to content

Commit 3c9f463

Browse files
authored
Fix pygmt/helpers/testing.py doctest for GMT 6.2.0rc1 (#1243)
1 parent af7d27d commit 3c9f463

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pygmt/helpers/testing.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ def check_figures_equal(*, extensions=("png",), tol=0.0, result_dir="result_imag
4242
... fig_ref = Figure()
4343
... fig_ref.basemap(projection="X5c", region=[0, 5, 0, 5], frame=True)
4444
... fig_test = Figure()
45-
... fig_test.basemap(projection="X5c", region=[0, 5, 0, 5], frame="af")
45+
... fig_test.basemap(
46+
... projection="X5c", region=[0, 5, 0, 5], frame=["WrStZ", "af"]
47+
... )
4648
... return fig_ref, fig_test
4749
>>> test_check_figures_equal()
4850
>>> assert len(os.listdir("tmp_result_images")) == 0
@@ -51,7 +53,7 @@ def check_figures_equal(*, extensions=("png",), tol=0.0, result_dir="result_imag
5153
>>> @check_figures_equal(result_dir="tmp_result_images")
5254
... def test_check_figures_unequal():
5355
... fig_ref = Figure()
54-
... fig_ref.basemap(projection="X5c", region=[0, 5, 0, 5], frame=True)
56+
... fig_ref.basemap(projection="X5c", region=[0, 6, 0, 6], frame=True)
5557
... fig_test = Figure()
5658
... fig_test.basemap(projection="X5c", region=[0, 3, 0, 3], frame=True)
5759
... return fig_ref, fig_test

0 commit comments

Comments
 (0)