From 1adf30b70103e3c4fad5ecafca0042a994de0dee Mon Sep 17 00:00:00 2001 From: cgohlke Date: Thu, 20 Mar 2014 01:16:31 -0700 Subject: [PATCH] TST: fix failing BMP tests on Windows --- Tests/test_bmp_reference.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/test_bmp_reference.py b/Tests/test_bmp_reference.py index 0e03df79a..99818229f 100644 --- a/Tests/test_bmp_reference.py +++ b/Tests/test_bmp_reference.py @@ -3,7 +3,7 @@ from tester import * from PIL import Image import os -base = 'Tests/images/bmp/' +base = os.path.join('Tests', 'images', 'bmp') def get_files(d, ext='.bmp'): @@ -78,9 +78,9 @@ def test_good(): except Exception as msg: # there are three here that are unsupported: - unsupported = ('Tests/images/bmp/g/rgb32bf.bmp', - 'Tests/images/bmp/g/pal8rle.bmp', - 'Tests/images/bmp/g/pal4rle.bmp') + unsupported = (os.path.join(base, 'g', 'rgb32bf.bmp'), + os.path.join(base, 'g', 'pal8rle.bmp'), + os.path.join(base, 'g', 'pal4rle.bmp')) if f not in unsupported: assert_true(False, "Unsupported Image %s: %s" %(f,msg))