We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63736a8 commit 2b89da3Copy full SHA for 2b89da3
scipy_doctest/util.py
@@ -29,7 +29,8 @@ def matplotlib_make_nongui():
29
# Filter them out.
30
# UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
31
with warnings.catch_warnings():
32
- warnings.filterwarnings("ignore", "FigureCanvasAgg", UserWarning)
+ warnings.filterwarnings("ignore", "FigureCanvasAgg", UserWarning) # MPL >= 3.8.x
33
+ warnings.filterwarnings("ignore", "Matplotlib", UserWarning) # MPL <= 3.7.x
34
yield backend
35
finally:
36
if backend:
0 commit comments