From ae8e10d90085f4247f9ae2156e4387c6d1f418a5 Mon Sep 17 00:00:00 2001 From: Unrud Date: Sat, 21 Apr 2018 16:01:55 +0200 Subject: [PATCH] Specify encoding for test files "utf-8" is not the default encoding on Windows, causing tests to fail --- radicale/tests/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/tests/helpers.py b/radicale/tests/helpers.py index feb25ecdb..c3d6bfc35 100644 --- a/radicale/tests/helpers.py +++ b/radicale/tests/helpers.py @@ -30,7 +30,8 @@ def get_file_content(file_name): try: - with open(os.path.join(EXAMPLES_FOLDER, file_name)) as fd: + with open(os.path.join(EXAMPLES_FOLDER, file_name), + encoding="utf-8") as fd: return fd.read() except IOError: print("Couldn't open the file %s" % file_name)