Skip to content

Catch normed warning in tests #10200

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
Jan 20, 2018
Merged

Conversation

dstansby
Copy link
Member

@dstansby dstansby commented Jan 9, 2018

Another "normed kwarg to hist is deprecated" catch

ax.hist((d1, d2), stacked=True, normed=True)
fig, ax = plt.subplots()
with pytest.warns(UserWarning):
ax.hist((d1, d2), stacked=True, normed=True)
Copy link
Member

Choose a reason for hiding this comment

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

Instead of catching the warning, why not stop using the deprecated 'normed' kwarg in the tests?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because although it's deprecated, it should still work until removed (and we should be testing that it still works)

@tacaswell tacaswell added this to the v2.2 milestone Jan 17, 2018
@tacaswell
Copy link
Member

@dstansby can you rebase? This seems to be failing on the gdb issue.

@tacaswell tacaswell merged commit 7249249 into matplotlib:master Jan 20, 2018
@dstansby dstansby deleted the normed-warning branch January 20, 2018 11:29
@QuLogic QuLogic modified the milestones: needs sorting, v2.2.0 Feb 12, 2018
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.

5 participants