Skip to content

Commit 57b2f17

Browse files
committed
need to specify a 'reason=' to use pytest.maek.xfail
1 parent d04ab5c commit 57b2f17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def test_image_python_io():
9595
plt.imread(buffer)
9696

9797

98-
@pytest.mark.xfail(not HAS_PIL)
98+
@pytest.mark.xfail(not HAS_PIL, reason='PIL is not installed')
9999
def test_imread_pil_uint16():
100100
img = plt.imread(os.path.join(os.path.dirname(__file__),
101101
'baseline_images', 'test_image', 'uint16.tif'))
@@ -481,7 +481,7 @@ def test_nonuniformimage_setnorm():
481481
im.set_norm(plt.Normalize())
482482

483483

484-
@pytest.mark.xfail(not HAS_PIL)
484+
@pytest.mark.xfail(not HAS_PIL, reason='PIL is not installed')
485485
@cleanup
486486
def test_jpeg_alpha():
487487
plt.figure(figsize=(1, 1), dpi=300)

0 commit comments

Comments
 (0)