matplotlib.tests in mpl 1.5 conda builds

Hi,

I am using matplotlib's testing framework for my own project (mostly the
image_comparison decorator).

With the latest 1.5 builds on conda (not the pip install and not with
1.4.3), I get the following error when running:

>>> from matplotlib.testing.decorators import image_comparison
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
"/home/mowglie/.bin/conda/envs/oggm/lib/python3.4/site-packages/matplotlib/testing/decorators.py",
line 19, in <module>
     import matplotlib.tests
ImportError: No module named 'matplotlib.tests'

Any idea on why this happens?

Thanks!

Fabien

The 1.5.0 conda package does not ship with our test images (making the
image _way_ smaller).

This was reported https://github.com/matplotlib/matplotlib/issues/5487 and
is fixed upstream (but not released yet).

The tests should be packaged by continuum as a separate package, but that
does not seem to be the case yet. There is an (I assume) unofficial build
of matplotlib-tests you can install via

conda install -c msarahan matplotlib-tests

Tom

···

On Tue, Dec 22, 2015 at 10:35 AM Fabien <fabien.maussion at gmail.com> wrote:

Hi,

I am using matplotlib's testing framework for my own project (mostly the
image_comparison decorator).

With the latest 1.5 builds on conda (not the pip install and not with
1.4.3), I get the following error when running:

>>> from matplotlib.testing.decorators import image_comparison
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File

"/home/mowglie/.bin/conda/envs/oggm/lib/python3.4/site-packages/matplotlib/testing/decorators.py",
line 19, in <module>
     import matplotlib.tests
ImportError: No module named 'matplotlib.tests'

Any idea on why this happens?

Thanks!

Fabien

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users at python.org
https://mail.python.org/mailman/listinfo/matplotlib-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20151222/8b244c3d/attachment.html>

Thanks Thomas, sorry for not finding this one.

Cheers,

Fabien

···

On 12/22/2015 04:44 PM, Thomas Caswell wrote:

This was reported https://github.com/matplotlib/matplotlib/issues/5487
and is fixed upstream (but not released yet).