File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 18
18
19
19
import matplotlib as mpl
20
20
from matplotlib import _c_internal_utils
21
- from matplotlib .backend_bases import FigureCanvasBase
22
21
from matplotlib .backend_tools import ToolToggleBase
23
22
from matplotlib .testing import subprocess_run_helper as _run_helper , is_ci_environment
24
23
@@ -163,7 +162,7 @@ def _test_interactive_impl():
163
162
164
163
import matplotlib as mpl
165
164
from matplotlib import pyplot as plt
166
- from matplotlib .backend_bases import KeyEvent
165
+ from matplotlib .backend_bases import KeyEvent , FigureCanvasBase
167
166
mpl .rcParams .update ({
168
167
"webagg.open_in_browser" : False ,
169
168
"webagg.port_retries" : 1 ,
@@ -230,7 +229,7 @@ def check_alt_backend(alt_backend):
230
229
231
230
# When the figure is closed, it's manager is removed and the canvas is reset to
232
231
# FigureCanvasBase. Saving should still be possible.
233
- assert type (fig .canvas ) == FigureCanvasBase
232
+ assert type (fig .canvas ) == FigureCanvasBase , str ( fig . canvas )
234
233
result_after = io .BytesIO ()
235
234
fig .savefig (result_after , format = 'png' , dpi = 100 )
236
235
You can’t perform that action at this time.
0 commit comments