From d761d80750ad53a5e0e3f03c21ee17569fc3db9f Mon Sep 17 00:00:00 2001 From: Hugo Date: Fri, 20 Apr 2018 09:35:32 +0300 Subject: [PATCH] Use more standard __version__ rather than PILLOW_VERSION (#257) --- tests/test_main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_main.py b/tests/test_main.py index 94ecb466..fbad9ffb 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -1012,7 +1012,7 @@ def test_rotate_deskew_timeout(resources, outdir): @pytest.mark.skipif( - PIL.PILLOW_VERSION < '5.0.0', + PIL.__version__ < '5.0.0', reason="Pillow < 5.0.0 doesn't raise the exception") def test_decompression_bomb(resources, outpdf): p, out, err = run_ocrmypdf( @@ -1085,4 +1085,4 @@ def test_skip_repair(spoof_tesseract_noop, resources, outpdf): outpdf, '--skip-repair', env=spoof_tesseract_noop - ) \ No newline at end of file + )