Skip to content
Open
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: 1 addition & 11 deletions pandas/tests/plotting/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")


Expand Down Expand Up @@ -55,4 +45,4 @@ def hist_df():
),
}
)
return hist_df
return hist_df