Skip to content

Commit

Permalink
Use relaxed version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarlow83 committed Oct 4, 2022
1 parent d9eb0ba commit 5afca3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import pikepdf
import pytest
from packaging.version import Version
from packaging import version
from PIL import Image

import ocrmypdf
Expand Down Expand Up @@ -179,7 +179,7 @@ def test_maximum_options(renderer, output_type, multipage, outpdf):


@pytest.mark.skipif(
Version(tesseract.version()) >= Version('5'),
version.parse(tesseract.version()) >= version.parse('5'),
reason="tess 5 tries harder to find its files",
)
def test_tesseract_missing_tessdata(monkeypatch, resources, no_outpdf, tmpdir):
Expand Down

0 comments on commit 5afca3f

Please sign in to comment.