From 00151c1d3a8f0d05441cdbcd90f88a761290073e Mon Sep 17 00:00:00 2001 From: Jason Marechal Date: Fri, 15 Nov 2024 15:41:29 +0100 Subject: [PATCH] Fix for OL8/Centos7 --- tests/end_to_end/cucumber/features/steps/steps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/end_to_end/cucumber/features/steps/steps.py b/tests/end_to_end/cucumber/features/steps/steps.py index 2ccf1428b..a91ea6c45 100644 --- a/tests/end_to_end/cucumber/features/steps/steps.py +++ b/tests/end_to_end/cucumber/features/steps/steps.py @@ -26,7 +26,7 @@ def study_path_is(context, string): def set_solver(context, string): context.solver = string match = False - with fileinput.FileInput(context.tmp_study / "user/expansion/settings.ini", inplace=True) as file: + with fileinput.FileInput(str(context.tmp_study / "user/expansion/settings.ini"), inplace=True) as file: for line in file: match = match or re.search(r'solver\s*=.*', line) print(re.sub(r'solver\s*=.*', f'solver= {string}', line), end='')