mirror of
https://github.com/mikegerber/ocrd_calamari.git
synced 2025-06-09 11:49:53 +02:00
🐛 Open our test result with UTF-8 encoding (for Python 3.6?)
This commit is contained in:
parent
010391b09b
commit
e1f57b2638
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ class TestCalamariRecognize(TestCase):
|
|||
|
||||
page1 = os.path.join(workspace.directory, 'OCR-D-OCR-CALAMARI/OCR-D-OCR-CALAMARI_0001.xml')
|
||||
self.assertTrue(os.path.exists(page1))
|
||||
with open(page1, 'r') as f:
|
||||
with open(page1, 'r', encoding='utf-8') as f:
|
||||
self.assertIn('verſchuldeten', f.read())
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue