Silence labeled data warning in tests #5739

Merged
merged 4 commits into from Dec 24, 2015

Conversation

Projects
None yet
3 participants
Owner

jenshnielsen commented Dec 24, 2015

Continuing to fix various warnings in the test suite.

This suppresses a warning in the labeled data test and improves the error message a bit.

jenshnielsen added some commits Dec 24, 2015

@jenshnielsen jenshnielsen Change labeled data to not use colorspec in data
Silences a warning and this is tested below anyway
c418918
@jenshnielsen jenshnielsen Improve labed data warning to display the relevant arg
a84ba8f
@jenshnielsen jenshnielsen Actually catch MatplotlibDeprecationWarning in cycles test
0e1be8e
Owner

jenshnielsen commented Dec 24, 2015

I added another commit to fix a warning in the cycles test. The warnings.catch_warnings context manager does not actually catch the warning without a warnings filter.

@jenshnielsen jenshnielsen Make sure font file is closed in test
05ea5ff
Owner

jenshnielsen commented Dec 24, 2015

Silenced yet another warning by making sure a font file is closed

@tacaswell tacaswell added a commit that referenced this pull request Dec 24, 2015

@tacaswell tacaswell Merge pull request #5739 from jenshnielsen/labelformatwarning
Silence labeled data warning in tests
a1e1fc2

@tacaswell tacaswell merged commit a1e1fc2 into matplotlib:master Dec 24, 2015

3 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage increased (+0.002%) to 68.331%
Details

tacaswell removed the needs_review label Dec 24, 2015

Owner

tacaswell commented Dec 24, 2015

how far back do we want to port this?

Owner

jenshnielsen commented Dec 24, 2015

I was inclined to not backport it apart from the improved warning message it really only touches test output but I am ok with backporting it to 2.x

jenshnielsen deleted the jenshnielsen:labelformatwarning branch Dec 24, 2015

Owner

tacaswell commented Dec 24, 2015

sold on not backporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment