Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tacaswell merged 1 commit intomatplotlib:masterfromdstansby:normed-warning
Jan 20, 2018

Conversation

dstansby
Copy link
Member

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?

tacaswell reacted with thumbs up emoji
Copy link
MemberAuthor

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)

@tacaswelltacaswell added this to thev2.2 milestoneJan 17, 2018
@tacaswell
Copy link
Member

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

@tacaswelltacaswell merged commit7249249 intomatplotlib:masterJan 20, 2018
@dstansbydstansby deleted the normed-warning branchJanuary 20, 2018 11:29
@QuLogicQuLogic modified the milestones:needs sorting,v2.2.0Feb 12, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@efiringefiringefiring left review comments

@jklymakjklymakjklymak approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v2.2.0
Development

Successfully merging this pull request may close these issues.

5 participants
@dstansby@tacaswell@efiring@jklymak@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp