Skip to content

Commit 20bb002

Browse files
committed
[test_ModelicaSystemOMC] read file using utf-8 encoding / linter fix
1 parent 6d59d2c commit 20bb002

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_ModelicaSystemOMC.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def test_simulate_inputs(tmp_path):
495495
}
496496
mod.setInputs(**inputs)
497497
csv_file = mod._createCSVData()
498-
assert pathlib.Path(csv_file).read_text() == """time,u1,u2,end
498+
assert pathlib.Path(csv_file).read_text(encoding='utf-8') == """time,u1,u2,end
499499
0.0,0.0,0.0,0
500500
0.25,0.25,0.5,0
501501
0.5,0.5,1.0,0

0 commit comments

Comments
 (0)