We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ca763f commit 8376e31Copy full SHA for 8376e31
tests/test_tesseract.py
@@ -102,7 +102,12 @@ def test_3842():
102
partial_tp = page.get_textpage_ocr(flags=0, full=False)
103
except Exception as e:
104
print(f'test_3842(): received exception: {e}', flush=1)
105
- assert 'No tessdata specified and Tesseract is not installed' in str(e)
+ if 'No tessdata specified and Tesseract is not installed' in str(e):
106
+ pass
107
+ elif 'Tesseract language initialisation failed' in str(e):
108
109
+ else:
110
+ assert 0, f'Unexpected exception text: {str(e)=}'
111
else:
112
text = page.get_text(textpage=partial_tp)
113
print()
0 commit comments