Skip to content

Commit b0a342d

Browse files
committed
pytest xfail needs a 'reason'
1 parent 636728f commit b0a342d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/matplotlib/tests/test_colors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ def test_light_source_shading_default():
398398

399399

400400
@pytest.mark.xfail((V(np.__version__) <= V('1.9.0')
401-
and V(np.__version__) >= V('1.7.0')))
401+
and V(np.__version__) >= V('1.7.0')),
402+
reason='numpy version needs to be between 1.7 and 1.9')
402403
# Numpy 1.9.1 fixed a bug in masked arrays which resulted in
403404
# additional elements being masked when calculating the gradient thus
404405
# the output is different with earlier numpy versions.

lib/matplotlib/tests/test_mlab.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2751,7 +2751,8 @@ def get_z(x, y):
27512751
np.ma.getmask(correct_zi_masked))
27522752

27532753

2754-
@pytest.mark.xfail(not HAS_NATGRID)
2754+
@pytest.mark.xfail(not HAS_NATGRID,
2755+
reason='import of the natgrid toolkit failed')
27552756
def test_griddata_nn():
27562757
# z is a linear function of x and y.
27572758
def get_z(x, y):

0 commit comments

Comments
 (0)