We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b432da commit e19f35bCopy full SHA for e19f35b
nibabel/tests/test_viewers.py
@@ -55,7 +55,12 @@ def test_viewer():
55
v.clim = (0, 3)
56
with pytest.raises(ValueError):
57
OrthoSlicer3D.clim.fset(v, (0.,)) # bad limits
58
- with pytest.raises(ValueError):
+ with pytest.raises(
59
+ (
60
+ ValueError, # MPL3.5 and lower
61
+ KeyError, # MPL3.6 and higher
62
+ )
63
+ ):
64
OrthoSlicer3D.cmap.fset(v, 'foo') # wrong cmap
65
66
# decrement/increment volume numbers via keypress
0 commit comments