Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Catch a couple of test warnings #11352

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 1 commit into from
Jun 5, 2018
Merged

Conversation

dstansby
Copy link
Member

No description provided.

@dstansby dstansby added this to the v3.0 milestone May 31, 2018
@@ -895,7 +895,9 @@ def test_imshow_float128():
fig, ax = plt.subplots()
ax.imshow(np.zeros((3, 3), dtype=np.longdouble))
# Ensure that drawing doesn't cause crash
fig.canvas.draw()
# & catch a warning that float128 gets cast to float64
with pytest.warns(UserWarning):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one fails the Appveyor build with no Warning...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, must be a platform specific warning.

Copy link
Member

@jkseppan jkseppan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems harmless. Are there equivalent tests for whatever code replaces the deprecated calls?

@phobson phobson merged commit a49d2c7 into matplotlib:master Jun 5, 2018
@dstansby dstansby deleted the test-warning branch June 11, 2018 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants