Skip to content

Commit

Permalink
TST: fix matplotlib warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hongyeehh committed Dec 25, 2023
1 parent 343f625 commit b606790
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/visualization/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,5 @@ def test_no_ax_no_file(self, test_data):
"""Test call without set axis nor output file then call plt.show()."""
pfs, sp, tpls, locs = test_data
# agg cannot show plt.show() but locally we get a warning for it (except in Linux)
warnings.filterwarnings("ignore", "Matplotlib is currently using agg", category=UserWarning)
plot(positionfixes=pfs, staypoints=sp, triplegs=tpls, locations=locs)
warnings.resetwarnings()
with pytest.warns(UserWarning):
plot(positionfixes=pfs, staypoints=sp, triplegs=tpls, locations=locs)

0 comments on commit b606790

Please sign in to comment.