mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
TST: fix failing BMP tests on Windows
This commit is contained in:
parent
7d712a0f9a
commit
1adf30b701
|
@ -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))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user