mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-29 06:33:19 +08:00
[test_freeimage] Allow ValueError to be raised
With the truncated image, sometimes ValueError is raised. This allows either RuntimeError (i.e. libfreeimage error) or ValueError to be raised.
This commit is contained in:
@@ -39,7 +39,7 @@ def test_imread():
|
||||
|
||||
@skipif(not FI_available)
|
||||
def test_imread_truncated_jpg():
|
||||
assert_raises(RuntimeError,
|
||||
assert_raises((RuntimeError, ValueError),
|
||||
sio.imread,
|
||||
os.path.join(si.data_dir, 'truncated.jpg'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user