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

Skip to content

Commit 5417f2d

Browse files
committed
TST: Skip sphinxext if unavailable instead of error.
1 parent 01871e4 commit 5417f2d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/matplotlib/sphinxext/tests/test_tinypages.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ def setup_module():
2222
ret = call([sys.executable, '-msphinx', '--help'],
2323
stdout=PIPE, stderr=PIPE)
2424
if ret != 0:
25-
raise RuntimeError(
26-
"'{} -msphinx' does not return 0".format(sys.executable))
25+
pytest.skip("'{} -msphinx' does not return 0".format(sys.executable))
2726

2827

2928
@cbook.deprecated("2.1", alternative="filecmp.cmp")

0 commit comments

Comments
 (0)