Skip to content

Commit 6db164f

Browse files
committed
Fixup test
1 parent 719bd69 commit 6db164f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/ert/unit_tests/test_run_path_creation.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,12 @@ def test_that_error_is_raised_when_data_file_is_badly_encoded(make_run_path):
293293
Path("MY_DATA_FILE.DATA").write_text(
294294
"ä I WANT TO REPLACE:<DATE>", encoding="iso-8859-1"
295295
)
296-
296+
err_str = (
297+
"Unsupported non UTF-8 character found in file: templates/MY_DATA_FILE.DATA"
298+
)
297299
with pytest.raises(
298300
ValueError,
299-
match=r"Unsupported non UTF-8 character found in file: .*MY_DATA_FILE.DATA",
301+
match=err_str,
300302
):
301303
make_run_path(ert_config)
302304

0 commit comments

Comments
 (0)