File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -70,15 +70,17 @@ def test_registering_no_warning(self):
70
70
# Set to the "warn" state, in case this isn't the first test run
71
71
register_matplotlib_converters ()
72
72
ax .plot (s .index , s .values )
73
+ plt .close ()
73
74
74
75
def test_pandas_plots_register (self ):
75
- pytest .importorskip ("matplotlib.pyplot" )
76
+ plt = pytest .importorskip ("matplotlib.pyplot" )
76
77
s = Series (range (12 ), index = date_range ("2017" , periods = 12 ))
77
78
# Set to the "warn" state, in case this isn't the first test run
78
79
with tm .assert_produces_warning (None ) as w :
79
80
s .plot ()
80
81
81
82
assert len (w ) == 0
83
+ plt .close ()
82
84
83
85
def test_matplotlib_formatters (self ):
84
86
units = pytest .importorskip ("matplotlib.units" )
@@ -108,6 +110,7 @@ def test_option_no_warning(self):
108
110
register_matplotlib_converters ()
109
111
with ctx :
110
112
ax .plot (s .index , s .values )
113
+ plt .close ()
111
114
112
115
def test_registry_resets (self ):
113
116
units = pytest .importorskip ("matplotlib.units" )
You can’t perform that action at this time.
0 commit comments