Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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