Skip to content

Commit

Permalink
CI: xfail a windows test (#37858)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel authored Nov 15, 2020
1 parent 5b98dc6 commit 8d1b8ab
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pandas/tests/plotting/test_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import pandas._config.config as cf

from pandas.compat import is_platform_windows
from pandas.compat.numpy import np_datetime64_compat
import pandas.util._test_decorators as td

Expand Down Expand Up @@ -72,15 +73,22 @@ def test_registering_no_warning(self):
ax.plot(s.index, s.values)
plt.close()

@pytest.mark.xfail(
is_platform_windows(),
reason="Getting two warnings intermittently, see GH#37746",
strict=False,
)
def test_pandas_plots_register(self):
plt = pytest.importorskip("matplotlib.pyplot")
s = Series(range(12), index=date_range("2017", periods=12))
# Set to the "warn" state, in case this isn't the first test run
with tm.assert_produces_warning(None) as w:
s.plot()

assert len(w) == 0
plt.close()
try:
assert len(w) == 0
finally:
plt.close()

def test_matplotlib_formatters(self):
units = pytest.importorskip("matplotlib.units")
Expand Down

0 comments on commit 8d1b8ab

Please sign in to comment.