From c24bcae9fb7007db8247e880bd097af058e8642b Mon Sep 17 00:00:00 2001 From: Florian OMNES <26088210+flomnes@users.noreply.github.com> Date: Tue, 16 Jan 2024 10:29:09 +0100 Subject: [PATCH] Fix --- scripts/antares_test_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/antares_test_utils.py b/scripts/antares_test_utils.py index 5f038b7..259278e 100644 --- a/scripts/antares_test_utils.py +++ b/scripts/antares_test_utils.py @@ -64,8 +64,8 @@ def launch_solver(solver_path, study_path, use_ortools = False, ortools_solver = command.append('--named-mps-problems') process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=None) - stdout, stderr = subprocess.communicate() - exit_code = subprocess.wait() + stdout, stderr = process.communicate() + exit_code = process.wait() return (exit_code == 0)