From 8a525078657afa687b441cc99318b39e15960752 Mon Sep 17 00:00:00 2001 From: Abdoulbari ZAKIR Date: Mon, 16 Oct 2023 15:52:56 +0200 Subject: [PATCH] update --- .../include/multisolver_interface/SolverAbstract.h | 6 +++--- tests/end_to_end/examples/example_test.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cpp/multisolver_interface/include/multisolver_interface/SolverAbstract.h b/src/cpp/multisolver_interface/include/multisolver_interface/SolverAbstract.h index 1fee951c7..485105aca 100644 --- a/src/cpp/multisolver_interface/include/multisolver_interface/SolverAbstract.h +++ b/src/cpp/multisolver_interface/include/multisolver_interface/SolverAbstract.h @@ -33,14 +33,14 @@ class SolverLogManager { setvbuf(log_file_ptr, nullptr, _IONBF, 0); } } - - ~SolverLogManager() { +//TODO +/* ~SolverLogManager() { if (log_file_ptr) { fclose(log_file_ptr); log_file_ptr = nullptr; } } - +*/ FILE *log_file_ptr = nullptr; std::filesystem::path log_file_path = ""; }; diff --git a/tests/end_to_end/examples/example_test.py b/tests/end_to_end/examples/example_test.py index 1b485aee1..7d335ba5b 100644 --- a/tests/end_to_end/examples/example_test.py +++ b/tests/end_to_end/examples/example_test.py @@ -276,7 +276,7 @@ def test_six_candidates_with_playlists_10_monte_carlo_years( study_path = Issue688_Test tmp_study = tmp_path / study_path.name shutil.copytree(study_path, tmp_study) - shutil.copytree(tmp_study/"settings"/"10MC-generaldata.ini", tmp_study/"settings"/"generaldata.ini") + shutil.copyfile(tmp_study/"settings"/"10MC-generaldata.ini", tmp_study/"settings"/"generaldata.ini") launch_xpansion(install_dir, tmp_study, BendersMethod.BENDERS, allow_run_as_root, 1) # verify_solution(tmp_study, expected_values, expected_investment_solution)