Skip to content

TST: Always close figures in plotting tests #53929

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 30, 2023

Conversation

mroeschke
Copy link
Member

Now that the plotting tests are more-or-less isolated and testing one topic, we can use the mpl_cleanup autouse fixture to close all figures per test and remove the need for tm.close

@mroeschke mroeschke added Testing pandas testing functions or related to the test suite Visualization plotting labels Jun 29, 2023
@mroeschke mroeschke added this to the 2.1 milestone Jun 29, 2023
@jbrockmendel
Copy link
Member

looks fine to me, though might be good to have someone who knows matplotlib better have a look

@mroeschke mroeschke merged commit 56df926 into pandas-dev:main Jun 30, 2023
@mroeschke mroeschke deleted the tst/plotting branch June 30, 2023 19:57
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
* centeralize mpl_cleanup, make hist_df smaller

* remove def close

* trigger ci

* Bump to 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite Visualization plotting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants