8000 Do not rely on outer scope variables in `ImageComparisonTest.test.do_… by tacaswell · Pull Request #7425 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Do not rely on outer scope variables in `ImageComparisonTest.test.do_… #7425

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
Nov 8, 2016

Conversation

tacaswell
Copy link
Member
@tacaswell tacaswell commented Nov 8, 2016

…test`

do_test function variables are changed by loop where function was created.
It will work as you expect only if you call yielded function immediately.

At suggestion of @QuLogic

…test`

`do_test` function variables are changed by loop where function was creates.
It will work as you expect only if you call yielded function immediately.
@tacaswell tacaswell added this to the 2.0.1 (next bug fix release) milestone Nov 8, 2016
@QuLogic QuLogic changed the title Do not rely on outer scope variables in `ImageComparisonTest.test.do_… [MRG+1] Do not rely on outer scope variables in `ImageComparisonTest.test.do_… Nov 8, 2016
Copy link
Contributor
@dopplershift dopplershift left a comment

Choose a reason for hiding this comment

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

Always good to lessen mutable state.

@dopplershift dopplershift merged commit 0e89671 into matplotlib:v2.x Nov 8, 2016
@dopplershift dopplershift changed the title [MRG+1] Do not rely on outer scope variables in `ImageComparisonTest.test.do_… Do not rely on outer scope variables in `ImageComparisonTest.test.do_… Nov 8, 2016
@tacaswell tacaswell deleted the backport_nose_fix branch November 7B28 9, 2016 13:08
@QuLogic QuLogic modified the milestones: 2.0.1 (next bug fix release), 2.0 (style change major release) Dec 7, 2016
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
0