TST: fix failing BMP tests on Windows

This commit is contained in:
cgohlke 2014-03-20 01:16:31 -07:00
parent 7d712a0f9a
commit 1adf30b701

View File

@ -3,7 +3,7 @@ from tester import *
from PIL import Image from PIL import Image
import os import os
base = 'Tests/images/bmp/' base = os.path.join('Tests', 'images', 'bmp')
def get_files(d, ext='.bmp'): def get_files(d, ext='.bmp'):
@ -78,9 +78,9 @@ def test_good():
except Exception as msg: except Exception as msg:
# there are three here that are unsupported: # there are three here that are unsupported:
unsupported = ('Tests/images/bmp/g/rgb32bf.bmp', unsupported = (os.path.join(base, 'g', 'rgb32bf.bmp'),
'Tests/images/bmp/g/pal8rle.bmp', os.path.join(base, 'g', 'pal8rle.bmp'),
'Tests/images/bmp/g/pal4rle.bmp') os.path.join(base, 'g', 'pal4rle.bmp'))
if f not in unsupported: if f not in unsupported:
assert_true(False, "Unsupported Image %s: %s" %(f,msg)) assert_true(False, "Unsupported Image %s: %s" %(f,msg))