Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 12eaf72

Browse files
committed
TST : know-fail shadding tests
The underlying issues is the changes to np.gradient in numpy 1.9.0. Known-fail these tests so that travis is still useful while we decide how to fix these tests.
1 parent 4577a57 commit 12eaf72

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/matplotlib/tests/test_colors.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import six
55
import itertools
6+
from distutils.version import LooseVersion as V
67

78
from nose.tools import assert_raises
89

@@ -13,7 +14,8 @@
1314
import matplotlib.cm as cm
1415
import matplotlib.cbook as cbook
1516
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)
1719

1820

1921
def test_colormap_endian():
@@ -255,6 +257,7 @@ def test_light_source_topo_surface():
255257
ax.set(xticks=[], yticks=[])
256258

257259

260+
@knownfailureif(V(np.__version__) >= V('1.9.0'))
258261
def test_light_source_shading_default():
259262
"""Array comparison test for the default "hsv" blend mode. Ensure the
260263
default result doesn't change without warning."""
@@ -304,6 +307,7 @@ def test_light_source_shading_default():
304307
assert_array_almost_equal(rgb, expect, decimal=2)
305308

306309

310+
@knownfailureif(V(np.__version__) >= V('1.9.0'))
307311
def test_light_source_masked_shading():
308312
"""Array comparison test for a surface with a masked portion. Ensures that
309313
we don't wind up with "fringes" of odd colors around masked regions."""

0 commit comments

Comments
 (0)