Skip to content

Commit 2b89da3

Browse files
committed
BUG: MPL Agg filter warning: allow both MPL <=3.7 and >=3.8 spellings
1 parent 63736a8 commit 2b89da3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scipy_doctest/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def matplotlib_make_nongui():
2929
# Filter them out.
3030
# UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
3131
with warnings.catch_warnings():
32-
warnings.filterwarnings("ignore", "FigureCanvasAgg", UserWarning)
32+
warnings.filterwarnings("ignore", "FigureCanvasAgg", UserWarning) # MPL >= 3.8.x
33+
warnings.filterwarnings("ignore", "Matplotlib", UserWarning) # MPL <= 3.7.x
3334
yield backend
3435
finally:
3536
if backend:

0 commit comments

Comments
 (0)