Handle more warnings

Punt on the issue of warnings with the minimum build

Handle warnings in measure pkg

Fix the rank filter test by forcing a random seed in the function

Compare as boolean in imread test

Import loadmat in test_setup to avoid warning

Use a setup method for imread plugin test

Revoke unintended changes

Fix indentation to appease jni

More indentation fixes

Fix unintentional comment out
This commit is contained in:
Steven Silvester
2014-12-23 16:49:59 -06:00
parent 6db92d387b
commit 782ba46a4c
14 changed files with 29 additions and 23 deletions
+1 -2
View File
@@ -48,8 +48,7 @@ def imread(fname, dtype=None, img_num=None, **kwargs):
im = Image.open(fname)
try:
# this will raise an IOError if the file is not readable
#im.getdata()[0]
pass
im.getdata()[0]
except IOError:
site = "http://pillow.readthedocs.org/en/latest/installation.html#external-libraries"
raise ValueError('Could not load "%s"\nPlease see documentation at: %s' % (fname, site))