(supported) good bmps all pass

This commit is contained in:
wiredfool 2014-01-26 20:36:01 -08:00
parent b3008a5386
commit ff417ceaac

View File

@ -65,20 +65,20 @@ def test_good():
for f in get_files('g'): for f in get_files('g'):
try: try:
print '.' print '.',
#print ("Trying %s"%f) #print ("Trying %s"%f)
im = Image.open(f) im = Image.open(f)
#print ("%s, %s" %(im.size, im.mode)) #print ("%s, %s" %(im.size, im.mode))
im.load() im.load()
compare = Image.open(get_compare(f)) compare = Image.open(get_compare(f))
compare.load() compare.load()
im = im.convert(compare.mode) if im.mode == 'P':
#print ("%s, %s" %(compare.size, compare.mode)) # assert image similar doesn't really work
if not assert_image_similar(im, compare,10): # with paletized image, since the palette might
print (f) # be differently ordered for an equivalent image.
im.show() im = im.convert('RGBA')
compare.show() compare = im.convert('RGBA')
sys.exit() assert_image_similar(im, compare,5)
except Exception as msg: except Exception as msg: