diff --git a/Tests/run.py b/Tests/run.py index 14c9f6d5c..8ce2e714a 100644 --- a/Tests/run.py +++ b/Tests/run.py @@ -37,7 +37,7 @@ include = [x for x in sys.argv[1:] if x[:2] != "--"] skipped = [] # XXX Skip test, is there a better way? -files.remove('Tests/test_file_tiff.py') +files.remove(os.path.join('Tests', 'test_file_tiff.py')) skipped.append('test_file_tiff') python_options = " ".join(python_options) diff --git a/Tests/test_file_tiff.py b/Tests/test_file_tiff.py index a0278601b..1b1e8457b 100644 --- a/Tests/test_file_tiff.py +++ b/Tests/test_file_tiff.py @@ -123,7 +123,6 @@ def test_g4_eq_png(): def test_g4_write(): """Checking to see that the saved image is the same as what we wrote""" - file = "Tests/images/lena_g4_500.tif" orig = Image.open(file) diff --git a/libImaging/TiffDecode.h b/libImaging/TiffDecode.h index 50570b5ef..759e366f9 100644 --- a/libImaging/TiffDecode.h +++ b/libImaging/TiffDecode.h @@ -49,12 +49,13 @@ extern int ImagingLibTiffSetField(ImagingCodecState state, ttag_t tag, ...); #else +/* #define VA_ARGS(...) __VA_ARGS__ #define TRACE(args) fprintf(stderr, VA_ARGS args) - -/* -#define TRACE(args) */ + +#define TRACE(args) + #endif /* _MSC_VER */ diff --git a/selftest.py b/selftest.py index 568518144..91a14bb54 100644 --- a/selftest.py +++ b/selftest.py @@ -157,7 +157,7 @@ def testimage(): def check_module(feature, module): try: - __import__("PIL." + module) + __import__(module) except ImportError: print("***", feature, "support not installed") else: