Skip to content

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 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