File tree 2 files changed +5
-0
lines changed 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ def mpl_test_settings(request):
58
58
# This import must come after setup() so it doesn't load the
59
59
# default backend prematurely.
60
60
import matplotlib .pyplot as plt
61
+ print ("A" , dict .__getitem__ (matplotlib .rcParams , "backend" ))
61
62
try :
62
63
plt .switch_backend (backend )
63
64
except ImportError as exc :
@@ -71,10 +72,13 @@ def mpl_test_settings(request):
71
72
with cbook ._suppress_matplotlib_deprecation_warning ():
72
73
matplotlib .style .use (style )
73
74
try :
75
+ print ("B" , dict .__getitem__ (matplotlib .rcParams , "backend" ))
74
76
yield
75
77
finally :
78
+ print ("C" , dict .__getitem__ (matplotlib .rcParams , "backend" ))
76
79
if backend is not None :
77
80
plt .switch_backend (prev_backend )
81
+ print ("D" , dict .__getitem__ (matplotlib .rcParams , "backend" ))
78
82
79
83
80
84
@pytest .fixture
Original file line number Diff line number Diff line change @@ -437,6 +437,7 @@ def test_annotation_negative_fig_coords():
437
437
def test_text_stale ():
438
438
fig , (ax1 , ax2 ) = plt .subplots (1 , 2 )
439
439
plt .draw_all ()
440
+ print (fig .canvas )
440
441
assert not ax1 .stale
441
442
assert not ax2 .stale
442
443
assert not fig .stale
You can’t perform that action at this time.
0 commit comments