Skip to content

Commit

Permalink
Try setting Agg backend for Matplotlib testing
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Mar 19, 2024
1 parent 2c00ec5 commit 970d0a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions skimage/io/tests/test_mpl_imshow.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
from skimage._shared._warnings import expected_warnings
from skimage._shared._dependency_checks import is_wasm

import os

plt = pytest.importorskip("matplotlib.pyplot")


def setup():
io.reset_plugins()
os.environ["MPLBACKEND"] = "agg"


# test images. Note that they don't have their full range for their dtype,
Expand Down

0 comments on commit 970d0a3

Please sign in to comment.