diff options
author | Ghostkeeper <rubend@tutanota.com> | 2018-06-11 12:08:47 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2018-06-11 12:09:07 +0300 |
commit | 54a03723ab4dbb5d29ce8b3f9ea98758ea404352 (patch) | |
tree | 411e6956b9e028403902ba23205d37b0b4df373c /tests/TestProfileRequirements.py | |
parent | c779795618e72b2373faf5bc70d2921aba67a49a (diff) |
Set encoding correctly when opening files everywhere
Otherwise the encoding is interpreted differently on Windows and Mac.
Diffstat (limited to 'tests/TestProfileRequirements.py')
-rw-r--r-- | tests/TestProfileRequirements.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/TestProfileRequirements.py b/tests/TestProfileRequirements.py index edeec909f2..f75ca9da8d 100644 --- a/tests/TestProfileRequirements.py +++ b/tests/TestProfileRequirements.py @@ -19,7 +19,7 @@ import pytest def test_ultimaker3extended_variants(um3_file, um3e_file): directory = os.path.join(os.path.dirname(__file__), "..", "resources", "variants") #TODO: Hardcoded path relative to this test file. um3 = configparser.ConfigParser() - um3.read_file(open(os.path.join(directory, um3_file))) + um3.read_file(open(os.path.join(directory, um3_file), encoding = "utf-8")) um3e = configparser.ConfigParser() - um3e.read_file(open(os.path.join(directory, um3e_file))) + um3e.read_file(open(os.path.join(directory, um3e_file), encoding = "utf-8")) assert um3["values"] == um3e["values"] |