From b5319e33fa225c38572d5c2b0ba9111ac009bcaa Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Tue, 28 Nov 2017 18:53:49 +0000 Subject: [PATCH] tests: Explicitly define encoding for excuses Signed-off-by: Niels Thykier --- tests/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/__init__.py b/tests/__init__.py index 2f91d6e..2eb6de5 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -420,10 +420,10 @@ ADT_REGRESSION_PENALTY = self.assertEqual(err, '') with open(os.path.join(self.data.path, 'output', - 'excuses.yaml')) as f: + 'excuses.yaml'), encoding='utf-8') as f: yaml = f.read() with open(os.path.join(self.data.path, 'output', - 'excuses.html')) as f: + 'excuses.html'), encoding='utf-8') as f: html = f.read() return (yaml, html, out)