From f98e5c977b10cf040d4bfbde3f984a029879a780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20C=2E=20Riven=C3=A6s?= Date: Sun, 17 Oct 2021 20:32:42 +0200 Subject: [PATCH] Add encoding in file open --- tests/test_fmu_dataio_cube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_fmu_dataio_cube.py b/tests/test_fmu_dataio_cube.py index 2dded7e62..c68bedb14 100644 --- a/tests/test_fmu_dataio_cube.py +++ b/tests/test_fmu_dataio_cube.py @@ -142,7 +142,7 @@ def test_cube_io_larger_case_ertrun(tmp_path): assert metadataout.is_file() is True # now read the metadata file and test some key entries: - with open(metadataout, "r") as mstream: + with open(metadataout, "r", encoding="utf8") as mstream: meta = yaml.safe_load(mstream) assert ( meta["file"]["relative_path"]