|
3 | 3 |
|
4 | 4 | import six
|
5 | 5 | import itertools
|
| 6 | +from distutils.version import LooseVersion as V |
6 | 7 |
|
7 | 8 | from nose.tools import assert_raises
|
8 | 9 |
|
|
13 | 14 | import matplotlib.cm as cm
|
14 | 15 | import matplotlib.cbook as cbook
|
15 | 16 | import matplotlib.pyplot as plt
|
16 |
| -from matplotlib.testing.decorators import image_comparison, cleanup |
| 17 | +from matplotlib.testing.decorators import (image_comparison, |
| 18 | + cleanup, knownfailureif) |
17 | 19 |
|
18 | 20 |
|
19 | 21 | def test_colormap_endian():
|
@@ -255,6 +257,7 @@ def test_light_source_topo_surface():
|
255 | 257 | ax.set(xticks=[], yticks=[])
|
256 | 258 |
|
257 | 259 |
|
| 260 | +@knownfailureif(V(np.__version__) >= V('1.9.0')) |
258 | 261 | def test_light_source_shading_default():
|
259 | 262 | """Array comparison test for the default "hsv" blend mode. Ensure the
|
260 | 263 | default result doesn't change without warning."""
|
@@ -304,6 +307,7 @@ def test_light_source_shading_default():
|
304 | 307 | assert_array_almost_equal(rgb, expect, decimal=2)
|
305 | 308 |
|
306 | 309 |
|
| 310 | +@knownfailureif(V(np.__version__) >= V('1.9.0')) |
307 | 311 | def test_light_source_masked_shading():
|
308 | 312 | """Array comparison test for a surface with a masked portion. Ensures that
|
309 | 313 | we don't wind up with "fringes" of odd colors around masked regions."""
|
|
0 commit comments