Skip to content

Commit d04ab5c

Browse files
committed
needed to specify 'reason=' for xfail to work
1 parent 47e0c4b commit d04ab5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_backend_ps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616

1717
needs_ghostscript = pytest.mark.xfail(
1818
matplotlib.checkdep_ghostscript()[0] is None,
19-
"This test needs a ghostscript installation")
19+
reason="This test needs a ghostscript installation")
2020

2121
needs_tex = pytest.mark.xfail(
2222
not matplotlib.checkdep_tex(),
23-
"This test needs a TeX installation")
23+
reason="This test needs a TeX installation")
2424

2525

2626
def _test_savefig_to_stringio(format='ps', use_log=False):

0 commit comments

Comments
 (0)