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

Appearance settings

Trouble importing image_comparison decorator in v1.5 #5487

Copy link
Copy link
Closed
@phobson

Description

@phobson
Issue body actions

Seems like the 1.5 no longer allows users to import testing decorators (e.g., image_comparison)

Consider the following similar conda environments:

conda create --name=_mpl14 python=3.5 matplotlib=1.4 nose --yes --quiet
conda create --name=_mpl15 python=3.5 matplotlib=1.5 nose --yes --quiet
paul@umpqua ~ $ source activate _mpl14
(_mpl14)paul@umpqua ~ $ python -c "from matplotlib.testing.decorators import image_comparison" # fine

paul@umpqua ~ $ source activate _mpl15
(_mpl15)paul@umpqua ~ $ python -c "from matplotlib.testing.decorators import image_comparison" # fails
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/paul/miniconda3/envs/_mpl15/lib/python3.5/site-packages/matplotlib/testing/decorators.py", line 19, in <module>
    import matplotlib.tests
ImportError: No module named 'matplotlib.tests'

Looks like both matplotlib.__init__ and matplotlib.tests.__init__ got modified a bit since version 1.4.

Is this expected? If not, I can take a stab at git bisect-ing the issue.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.