Skip no language test for Tess 5

This commit is contained in:
James R. Barlow
2021-11-13 01:37:27 -08:00
parent 659e738f92
commit acc9d58c39
+1
View File
@@ -60,6 +60,7 @@ def test_content_preservation(resources, outpdf):
assert len(page.images) > 1, "masks were rasterized"
@pytest.mark.skipif(tesseract.version() > '5', reason="doesn't fool Tess 5")
def test_no_languages(tmp_path, monkeypatch):
(tmp_path / 'tessdata').mkdir()
monkeypatch.setenv('TESSDATA_PREFIX', fspath(tmp_path))