Skip to content

Commit a807a76

Browse files
committed
Avoid setting plugins during doctests
1 parent 3e77acd commit a807a76

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/skimage/io/_io.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,6 @@ def show():
275275
276276
Examples
277277
--------
278-
.. testsetup::
279-
>>> import pytest; _ = pytest.importorskip('matplotlib')
280-
281278
>>> import skimage.io as io
282279
>>> rng = np.random.default_rng()
283280
>>> for i in range(4):

src/skimage/io/manage_plugins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def use_plugin(name, kind=None):
278278
To use Matplotlib as the default image reader, you would write:
279279
280280
>>> from skimage import io
281-
>>> io.use_plugin('matplotlib', 'imread')
281+
>>> io.use_plugin('matplotlib', 'imread') # doctest: +SKIP
282282
283283
To see a list of available plugins run ``skimage.io.available_plugins``. Note
284284
that this lists plugins that are defined, but the full list may not be usable

0 commit comments

Comments
 (0)