Overhaul version checkers to prefer Version to str

This commit is contained in:
James R. Barlow
2023-09-25 00:59:44 -07:00
parent bd4d44e182
commit ea36aedb5f
12 changed files with 57 additions and 39 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ def test_maximum_options(renderer, output_type, multipage, outpdf):
@pytest.mark.skipif(
tesseract.TesseractVersion(tesseract.version()) >= tesseract.TesseractVersion('5'),
tesseract.version() >= tesseract.TesseractVersion('5'),
reason="tess 5 tries harder to find its files",
)
def test_tesseract_missing_tessdata(monkeypatch, resources, no_outpdf, tmpdir):