File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
import pandas ._config .config as cf
9
9
10
+ from pandas .compat import is_platform_windows
10
11
from pandas .compat .numpy import np_datetime64_compat
11
12
import pandas .util ._test_decorators as td
12
13
@@ -72,15 +73,22 @@ def test_registering_no_warning(self):
72
73
ax .plot (s .index , s .values )
73
74
plt .close ()
74
75
76
+ @pytest .mark .xfail (
77
+ is_platform_windows (),
78
+ reason = "Getting two warnings intermittently, see GH#37746" ,
79
+ strict = False ,
80
+ )
75
81
def test_pandas_plots_register (self ):
76
82
plt = pytest .importorskip ("matplotlib.pyplot" )
77
83
s = Series (range (12 ), index = date_range ("2017" , periods = 12 ))
78
84
# Set to the "warn" state, in case this isn't the first test run
79
85
with tm .assert_produces_warning (None ) as w :
80
86
s .plot ()
81
87
82
- assert len (w ) == 0
83
- plt .close ()
88
+ try :
89
+ assert len (w ) == 0
90
+ finally :
91
+ plt .close ()
84
92
85
93
def test_matplotlib_formatters (self ):
86
94
units = pytest .importorskip ("matplotlib.units" )
You can’t perform that action at this time.
0 commit comments