From e4a826d1c18e73df0dad4fd55f9290c7d9523174 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Sun, 11 Feb 2018 20:01:44 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Fix=20fixture=20encoding=20(#122?= =?UTF-8?q?96)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common.py b/tests/common.py index cf896008d85..d194ad4d040 100644 --- a/tests/common.py +++ b/tests/common.py @@ -245,7 +245,7 @@ def fire_service_discovered(hass, service, info): def load_fixture(filename): """Load a fixture.""" path = os.path.join(os.path.dirname(__file__), 'fixtures', filename) - with open(path) as fptr: + with open(path, encoding='utf-8') as fptr: return fptr.read()