diff --git a/pandas/tests/plotting/conftest.py b/pandas/tests/plotting/conftest.py index 6f77356eb3762..11568564af208 100644 --- a/pandas/tests/plotting/conftest.py +++ b/pandas/tests/plotting/conftest.py @@ -7,13 +7,6 @@ ) -@pytest.fixture(autouse=True) -def non_interactive(): - mpl = pytest.importorskip("matplotlib") - mpl.use("template") - yield - - @pytest.fixture(autouse=True) def reset_rcParams(): mpl = pytest.importorskip("matplotlib") @@ -23,11 +16,8 @@ def reset_rcParams(): @pytest.fixture(autouse=True) def close_all_figures(): - # https://stackoverflow.com/q/31156578 yield plt = pytest.importorskip("matplotlib.pyplot") - plt.cla() - plt.clf() plt.close("all") @@ -55,4 +45,4 @@ def hist_df(): ), } ) - return hist_df + return hist_df \ No newline at end of file