Skip to content

Commit

Permalink
Add encoding in file open
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrivenaes committed Oct 18, 2021
1 parent 00c4df1 commit f98e5c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_fmu_dataio_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit f98e5c9

Please sign in to comment.