<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [4]: matplotlib.__version__
Out[4]: '1.5.0'

In [3]: from matplotlib.testing.decorators import cleanup
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
&lt;ipython-input-3-58e27e1ef7b3&gt; in &lt;module&gt;()
----&gt; 1 from matplotlib.testing.decorators import cleanup

/home/wiecki/miniconda3/lib/python3.4/site-packages/matplotlib/testing/decorators.py in &lt;module&gt;()
     17 import matplotlib as mpl
     18 import matplotlib.style
---&gt; 19 import matplotlib.tests
     20 import matplotlib.units
     21 from matplotlib import cbook

ImportError: No module named 'matplotlib.tests'"><pre class="notranslate"><code class="notranslate">In [4]: matplotlib.__version__
Out[4]: '1.5.0'

In [3]: from matplotlib.testing.decorators import cleanup
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
&lt;ipython-input-3-58e27e1ef7b3&gt; in &lt;module&gt;()
----&gt; 1 from matplotlib.testing.decorators import cleanup

/home/wiecki/miniconda3/lib/python3.4/site-packages/matplotlib/testing/decorators.py in &lt;module&gt;()
     17 import matplotlib as mpl
     18 import matplotlib.style
---&gt; 19 import matplotlib.tests
     20 import matplotlib.units
     21 from matplotlib import cbook

ImportError: No module named 'matplotlib.tests'
</code></pre></div>
<p dir="auto">Seems like the 1.5 no longer allows users to import testing decorators (e.g., <code class="notranslate">image_comparison</code>)</p>
<p dir="auto">Consider the following similar conda environments:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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 &quot;from matplotlib.testing.decorators import image_comparison&quot; # fine

paul@umpqua ~ $ source activate _mpl15
(_mpl15)paul@umpqua ~ $ python -c &quot;from matplotlib.testing.decorators import image_comparison&quot; # fails
Traceback (most recent call last):
  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/home/paul/miniconda3/envs/_mpl15/lib/python3.5/site-packages/matplotlib/testing/decorators.py&quot;, line 19, in &lt;module&gt;
    import matplotlib.tests
ImportError: No module named 'matplotlib.tests'"><pre class="notranslate"><code class="notranslate">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 "&lt;string&gt;", line 1, in &lt;module&gt;
  File "/home/paul/miniconda3/envs/_mpl15/lib/python3.5/site-packages/matplotlib/testing/decorators.py", line 19, in &lt;module&gt;
    import matplotlib.tests
ImportError: No module named 'matplotlib.tests'
</code></pre></div>
<p dir="auto">Looks like both <code class="notranslate">matplotlib.__init__</code> and <code class="notranslate">matplotlib.tests.__init__</code> got modified a bit since version 1.4.</p>
<p dir="auto">Is this expected? If not, I can take a stab at <code class="notranslate">git bisect</code>-ing the issue.</p>