[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:
Kevin Murray
2014-06-30 18:47:31 +10:00
parent 7d9f9c46d9
commit 83d0717986
+1 -1
View File
@@ -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'))