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

Add vega deprecations to tests on master#7987

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 2 commits intomatplotlib:masterfromQuLogic:master-Vega-deprecation
Jan 30, 2017

Conversation

QuLogic
Copy link
Member

The merge up broke this. Sorry about that.

@QuLogicQuLogic added this to the2.1 (next point release) milestoneJan 30, 2017
@NelleVNelleV changed the titleAdd vega deprecations to tests on master[MRG+1] Add vega deprecations to tests on masterJan 30, 2017
@tacaswelltacaswell merged commit87885e7 intomatplotlib:masterJan 30, 2017
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter('always')
cmap = plt.get_cmap(name)
assert len(w) == (1 if name in should_have_warning else 0)
Copy link
Member

Choose a reason for hiding this comment

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

How about adding some more data in the AssertionError message if this doesn't match? Something like

assertlen(w)== (1ifnameinshould_have_warningelse0), (name, [wg.messageforwginw])

would help the next person who wants to debug why this assertion is failing.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Well,name is already available though the parametrization and will be printed as part of the test name. Pytest also prints outw, but unfortunately using therepr which doesn't look that great for warnings, so maybe adding that to the message wouldn't be a bad idea.

@QuLogicQuLogic changed the title[MRG+1] Add vega deprecations to tests on masterAdd vega deprecations to tests on masterJan 30, 2017
@QuLogicQuLogic deleted the master-Vega-deprecation branchJanuary 30, 2017 21:19
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jkseppanjkseppanjkseppan left review comments

@NelleVNelleVNelleV approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v2.1
Development

Successfully merging this pull request may close these issues.

4 participants
@QuLogic@jkseppan@NelleV@tacaswell

[8]ページ先頭

©2009-2025 Movatter.jp