mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-11 03:02:19 +08:00
Fix error in viewer test when mpl is present but not qt.
This commit is contained in:
@@ -15,6 +15,9 @@ try:
|
||||
if 'agg' not in mpl.get_backend().lower():
|
||||
print("Recommended matplotlib backend is `Agg` for full "
|
||||
"skimage.viewer functionality.")
|
||||
else:
|
||||
FigureCanvasQTAgg = object
|
||||
LinearSegmentedColormap = object
|
||||
except ImportError:
|
||||
FigureCanvasQTAgg = object # hack to prevent nosetest and autodoc errors
|
||||
LinearSegmentedColormap = object
|
||||
|
||||
Reference in New Issue
Block a user