X Tutup
Skip to content

Allow image comparison outside tests module#5842

Merged
WeatherGod merged 2 commits intomatplotlib:masterfrom
maxalbert:allow_image_comparison_outside_tests_module
Jan 13, 2016
Merged

Allow image comparison outside tests module#5842
WeatherGod merged 2 commits intomatplotlib:masterfrom
maxalbert:allow_image_comparison_outside_tests_module

Conversation

@maxalbert
Copy link
Copy Markdown
Contributor

This is a replacement for PR #5518 (which should be closed if this is accepted). For now this PR simply removes the assert statement so that the @image_comparison decorator can be used in situations where the test does not live in a parent directory called tests (this does not apply to matplotlib but will be useful for third-party users).

In the medium term it would be good to re-think and refactor the code in _image_directories because isn't very easy to read at a glance if you don't know what's going on already, and the logic seems somewhat fragile (see #3314 for example).

…ts' module, but issue warning because the code logic seems a bit fragile and may fail.
@tacaswell tacaswell added this to the proposed next point release (2.1) milestone Jan 13, 2016
@maxalbert
Copy link
Copy Markdown
Contributor Author

There is one failure in the Travis build but it seems to be the PEP8 issue that was fixed by #5844. Not sure what's making the AppVeyor builds fail to be honest.

@tacaswell
Copy link
Copy Markdown
Member

power cycled the PR to re-kick CI against current master.

@tacaswell
Copy link
Copy Markdown
Member

👍 from me once travis passes. This should be non-controversial and I think be backported back to v1.5.x

@tacaswell tacaswell modified the milestones: Critical bug fix release (1.5.2), proposed next point release (2.1) Jan 13, 2016
@WeatherGod
Copy link
Copy Markdown
Member

appveyor failed on a couple of the job runs with a strange error. I can't restart them.

@tacaswell
Copy link
Copy Markdown
Member

Do not worry about appveyor too, it also lies that it passes ;)

On Wed, Jan 13, 2016 at 1:24 PM Benjamin Root notifications@github.com
wrote:

appveyor failed on a couple of the job runs with a strange error. I can't
restart them.


Reply to this email directly or view it on GitHub
#5842 (comment)
.

@WeatherGod
Copy link
Copy Markdown
Member

Ok. Merging and backporting to v1.5.x. Do I also need to manually backport it to the v2.x branch, or will that happen on its own?

WeatherGod added a commit that referenced this pull request Jan 13, 2016
…e_tests_module

Allow image comparison outside tests module
@WeatherGod WeatherGod merged commit c446a64 into matplotlib:master Jan 13, 2016
WeatherGod added a commit that referenced this pull request Jan 13, 2016
…e_tests_module

Allow image comparison outside tests module
@WeatherGod
Copy link
Copy Markdown
Member

backported to v1.5.x as 5240759

@tacaswell
Copy link
Copy Markdown
Member

every so someone does a 1.5.x -> 2.x -> master cascade

tacaswell pushed a commit to tacaswell/matplotlib that referenced this pull request May 22, 2016
…son_outside_tests_module

Allow image comparison outside tests module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

X Tutup