Skip to content

Commit

Permalink
Catch intermitten unclosed file warning
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Mar 15, 2015
1 parent 65f8ddc commit 375c21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skimage/_shared/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def mono_check(plugin, fmt='png'):
else:
testing.assert_allclose(r3, img_as_uint(img))

with expected_warnings(['precision loss']):
with expected_warnings(['precision loss|unclosed file']):
img4 = img_as_int(img)
if fmt.lower() in (('tif', 'tiff')):
img4 -= 100
Expand Down

0 comments on commit 375c21e

Please sign in to comment.