<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
======================================================================
FAIL: Array comparison test for the default &quot;hsv&quot; blend mode. Ensure the
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/nose/case.py&quot;, line 197, in runTest
    self.test(*self.arg)
  File &quot;/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/matplotlib-1.5.x-py2.6-linux-x86_64.egg/matplotlib/tests/test_colors.py&quot;, line 304, in test_light_source_shading_default
    assert_array_almost_equal(rgb, expect, decimal=2)
  File &quot;/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/numpy/testing/utils.py&quot;, line 842, in assert_array_almost_equal
    precision=decimal)
  File &quot;/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/numpy/testing/utils.py&quot;, line 665, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal to 2 decimals

(mismatch 16.40625%)
 x: array([[[  8.72e-01,   8.72e-01,   8.72e-01,   1.00e+00],
        [  8.31e-01,   7.63e-01,   7.20e-01,   1.00e+00],
        [  8.75e-01,   7.90e-01,   7.38e-01,   1.00e+00],...
 y: array([[[ 0.87,  0.87,  0.87,  1.  ],
        [ 0.85,  0.79,  0.75,  1.  ],
        [ 0.9 ,  0.83,  0.78,  1.  ],...

======================================================================
FAIL: Array comparison test for a surface with a masked portion. Ensures that
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/nose/case.py&quot;, line 197, in runTest
    self.test(*self.arg)
  File &quot;/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/matplotlib-1.5.x-py2.6-linux-x86_64.egg/matplotlib/tests/test_colors.py&quot;, line 355, in test_light_source_masked_shading
    assert_array_almost_equal(rgb, expect, decimal=2)
  File &quot;/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/numpy/testing/utils.py&quot;, line 842, in assert_array_almost_equal
    precision=decimal)
  File &quot;/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/numpy/testing/utils.py&quot;, line 665, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal to 2 decimals

(mismatch 29.296875%)
 x: array([[[  0.00e+00,   0.00e+00,   0.00e+00,   1.00e+00],
        [  9.50e-01,   9.27e-01,   9.13e-01,   1.00e+00],
        [  5.33e-01,   3.37e-01,   2.15e-01,   1.00e+00],...
 y: array([[[ 1.  ,  1.  ,  1.  ,  1.  ],
        [ 0.95,  0.93,  0.91,  1.  ],
        [ 0.96,  0.93,  0.91,  1.  ],...

----------------------------------------------------------------------
"><pre class="notranslate"><code class="notranslate">
======================================================================
FAIL: Array comparison test for the default "hsv" blend mode. Ensure the
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/matplotlib-1.5.x-py2.6-linux-x86_64.egg/matplotlib/tests/test_colors.py", line 304, in test_light_source_shading_default
    assert_array_almost_equal(rgb, expect, decimal=2)
  File "/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/numpy/testing/utils.py", line 842, in assert_array_almost_equal
    precision=decimal)
  File "/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/numpy/testing/utils.py", line 665, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal to 2 decimals

(mismatch 16.40625%)
 x: array([[[  8.72e-01,   8.72e-01,   8.72e-01,   1.00e+00],
        [  8.31e-01,   7.63e-01,   7.20e-01,   1.00e+00],
        [  8.75e-01,   7.90e-01,   7.38e-01,   1.00e+00],...
 y: array([[[ 0.87,  0.87,  0.87,  1.  ],
        [ 0.85,  0.79,  0.75,  1.  ],
        [ 0.9 ,  0.83,  0.78,  1.  ],...

======================================================================
FAIL: Array comparison test for a surface with a masked portion. Ensures that
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/matplotlib-1.5.x-py2.6-linux-x86_64.egg/matplotlib/tests/test_colors.py", line 355, in test_light_source_masked_shading
    assert_array_almost_equal(rgb, expect, decimal=2)
  File "/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/numpy/testing/utils.py", line 842, in assert_array_almost_equal
    precision=decimal)
  File "/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/numpy/testing/utils.py", line 665, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal to 2 decimals

(mismatch 29.296875%)
 x: array([[[  0.00e+00,   0.00e+00,   0.00e+00,   1.00e+00],
        [  9.50e-01,   9.27e-01,   9.13e-01,   1.00e+00],
        [  5.33e-01,   3.37e-01,   2.15e-01,   1.00e+00],...
 y: array([[[ 1.  ,  1.  ,  1.  ,  1.  ],
        [ 0.95,  0.93,  0.91,  1.  ],
        [ 0.96,  0.93,  0.91,  1.  ],...

----------------------------------------------------------------------

</code></pre></div>
<p dir="auto">I get the same failures locally.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jenshnielsen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jenshnielsen">@jenshnielsen</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/joferkington/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/joferkington">@joferkington</a></p>
<p dir="auto">These tests are part of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="38487249" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/3291" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/3291/hovercard" href="https://github.com/matplotlib/matplotlib/pull/3291">#3291</a> and fail for me with numpy 1.9.0</p>
<p dir="auto">The tests works with numpy 1.8.2 (on travis and locally). Not sure what is wrong here.<br>
Apologies for not spotting this before the merge.</p>