Closed
Description
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.