diff --git a/pandas/tests/plotting/frame/test_frame.py b/pandas/tests/plotting/frame/test_frame.py index 41df9fb2e5af0..a5527bb6a9ada 100644 --- a/pandas/tests/plotting/frame/test_frame.py +++ b/pandas/tests/plotting/frame/test_frame.py @@ -8,6 +8,7 @@ import numpy as np import pytest +from pandas.compat import PY38, is_platform_windows import pandas.util._test_decorators as td from pandas.core.dtypes.api import is_list_like @@ -483,12 +484,13 @@ def test_line_lim(self): assert xmax >= lines[0].get_data()[0][-1] @pytest.mark.xfail( - strict=False, + is_platform_windows() or not PY38, reason="2020-12-01 this has been failing periodically on the " "ymin==0 assertion for a week or so.", ) @pytest.mark.parametrize("stacked", [True, False]) - def test_area_lim(self, stacked): + def test_area_lim(self, stacked, request): + df = DataFrame(np.random.rand(6, 4), columns=["x", "y", "z", "four"]) neg_df = -df diff --git a/pandas/tests/plotting/test_converter.py b/pandas/tests/plotting/test_converter.py index 4f332bfbac397..78c11a0fb9663 100644 --- a/pandas/tests/plotting/test_converter.py +++ b/pandas/tests/plotting/test_converter.py @@ -78,7 +78,6 @@ def test_registering_no_warning(self): @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") diff --git a/pandas/tests/plotting/test_groupby.py b/pandas/tests/plotting/test_groupby.py index f73ceee577a18..8d575cce73db4 100644 --- a/pandas/tests/plotting/test_groupby.py +++ b/pandas/tests/plotting/test_groupby.py @@ -19,7 +19,6 @@ class TestDataFrameGroupByPlots(TestPlotBase): @pytest.mark.xfail( is_platform_windows(), reason="Looks like LinePlot._is_ts_plot is wrong", - strict=False, ) def test_series_groupby_plotting_nominally_works(self): n = 10