Skip to content
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

TST: Avoid global state in matplotlib tests #16539

Merged
merged 1 commit into from
May 31, 2017

Conversation

TomAugspurger
Copy link
Contributor

Replaces most uses of implicit global state from matplotlib in
test_datetimelike.py and test_series.py. This was potentially causing random failures
where a figure expected to be on a new, blank figure would instead
plot on an existing axes (that's the guess at least).

Closes #16371 (hopefully).

Replaces most uses of implicit global state from matplotlib in
test_datetimelike.py. This was potentially causing random failures
where a figure expected to be on a new, blank figure would instead
plot on an existing axes (that's the guess at least).
@TomAugspurger TomAugspurger added Testing pandas testing functions or related to the test suite Unreliable Test Unit tests that occasionally fail Visualization plotting labels May 30, 2017
@TomAugspurger TomAugspurger added this to the 0.21.0 milestone May 30, 2017
@codecov
Copy link

codecov bot commented May 30, 2017

Codecov Report

Merging #16539 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #16539   +/-   ##
=======================================
  Coverage   90.79%   90.79%           
=======================================
  Files         161      161           
  Lines       51063    51063           
=======================================
  Hits        46365    46365           
  Misses       4698     4698
Flag Coverage Δ
#multiple 88.63% <ø> (ø) ⬆️
#single 40.15% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e60dc4c...2c492fa. Read the comment docs.

@TomAugspurger
Copy link
Contributor Author

TomAugspurger commented May 30, 2017

I'm going to rerun the occasionally failing worker 4-5 times to see if I can get a failure.

5 / 5 so far.

@jreback
Copy link
Contributor

jreback commented May 30, 2017

looks much cleaner to me!

@TomAugspurger TomAugspurger merged commit 92d0799 into pandas-dev:master May 31, 2017
@TomAugspurger TomAugspurger deleted the fix-plot-tests branch June 4, 2017 20:29
Kiv pushed a commit to Kiv/pandas that referenced this pull request Jun 11, 2017
Replaces most uses of implicit global state from matplotlib in
test_datetimelike.py. This was potentially causing random failures
where a figure expected to be on a new, blank figure would instead
plot on an existing axes (that's the guess at least).
stangirala pushed a commit to stangirala/pandas that referenced this pull request Jun 11, 2017
Replaces most uses of implicit global state from matplotlib in
test_datetimelike.py. This was potentially causing random failures
where a figure expected to be on a new, blank figure would instead
plot on an existing axes (that's the guess at least).
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 Unreliable Test Unit tests that occasionally fail Visualization plotting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants