aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Martins <smartins@kde.org>2019-10-03 12:50:30 +0100
committerSergio Martins <smartins@kde.org>2019-10-03 12:50:30 +0100
commitd0e213dfdc4f31ee4deb5a90148ef77eb83339e5 (patch)
treebc101662584bcce0c34f8b2c16659f2f31109d18
parent5dfdc9670ca2ea4df1d07a0df0cfb4e9e2bd4db5 (diff)
tests: Fix utf-8 exception introduced with python3 migration
Tests now pass in ubuntu again
-rwxr-xr-xtests/run_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run_tests.py b/tests/run_tests.py
index a067009f..03fa503d 100755
--- a/tests/run_tests.py
+++ b/tests/run_tests.py
@@ -435,11 +435,11 @@ def run_command(cmd, output_file = "", test_env = os.environ):
def files_are_equal(file1, file2):
try:
- f = open(file1, 'r')
+ f = io.open(file1, 'r', encoding='utf-8')
lines1 = f.readlines()
f.close()
- f = open(file2, 'r')
+ f = io.open(file2, 'r', encoding='utf-8')
lines2 = f.readlines()
f.close()