From c1cf33960f715df911cde17b6f8f65cb71f56ec9 Mon Sep 17 00:00:00 2001 From: Nolwen Date: Fri, 5 Dec 2025 15:05:31 +0100 Subject: [PATCH] Skip tests rcpsp + mzn + windows For some reason, may randomly hang forever. --- tests/rcpsp/solvers/test_cp_mzn.py | 3 +++ tests/rcpsp/solvers/test_lns.py | 5 +++++ tests/rcpsp/solvers/test_resource_optim.py | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/tests/rcpsp/solvers/test_cp_mzn.py b/tests/rcpsp/solvers/test_cp_mzn.py index b6dbf647d..366443902 100644 --- a/tests/rcpsp/solvers/test_cp_mzn.py +++ b/tests/rcpsp/solvers/test_cp_mzn.py @@ -39,6 +39,9 @@ ) from discrete_optimization.rcpsp.utils import kendall_tau_similarity, plot_task_gantt +if sys.platform.startswith("win"): + pytest.skip(reason="Much too long on windows", allow_module_level=True) + @pytest.fixture def random_seed(): diff --git a/tests/rcpsp/solvers/test_lns.py b/tests/rcpsp/solvers/test_lns.py index 67ed556d5..c4e27dd0f 100644 --- a/tests/rcpsp/solvers/test_lns.py +++ b/tests/rcpsp/solvers/test_lns.py @@ -1,6 +1,8 @@ # Copyright (c) 2024-2025 AIRBUS and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. +import sys + import pytest from discrete_optimization.generic_rcpsp_tools.solvers.lns_cp_mzn import ( @@ -16,6 +18,9 @@ from discrete_optimization.rcpsp.problem import RcpspProblem from discrete_optimization.rcpsp.solvers.cp_mzn import CpRcpspSolver +if sys.platform.startswith("win"): + pytest.skip(reason="Much too long on windows", allow_module_level=True) + @pytest.mark.parametrize( "file_name", diff --git a/tests/rcpsp/solvers/test_resource_optim.py b/tests/rcpsp/solvers/test_resource_optim.py index b50e4099b..2f6b0b5cf 100644 --- a/tests/rcpsp/solvers/test_resource_optim.py +++ b/tests/rcpsp/solvers/test_resource_optim.py @@ -1,6 +1,7 @@ # Copyright (c) 2022-2025 AIRBUS and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. +import sys import pytest @@ -11,6 +12,9 @@ CpRcpspSolver, ) +if sys.platform.startswith("win"): + pytest.skip(reason="Much too long on windows", allow_module_level=True) + @pytest.mark.parametrize( "optimisation_level",