Use more standard __version__ rather than PILLOW_VERSION (#257)

This commit is contained in:
Hugo 2018-04-20 09:35:32 +03:00 committed by jbarlow83
parent 0b10db91be
commit d761d80750

View File

@ -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
)
)