From e1f57b263842c1141d39aa5b6ee151c1d6c1ad9b Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Tue, 3 Dec 2019 16:52:34 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Open=20our=20test=20result=20wit?= =?UTF-8?q?h=20UTF-8=20encoding=20(for=20Python=203.6=3F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test_recognize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_recognize.py b/test/test_recognize.py index 545f25a..28ebcbd 100644 --- a/test/test_recognize.py +++ b/test/test_recognize.py @@ -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__':