From 649b0c2feee7f2726fe1050424f823db16d46a22 Mon Sep 17 00:00:00 2001 From: relf Date: Thu, 23 Nov 2023 18:04:47 +0100 Subject: [PATCH] Exclude test using ConfigSpace --- smt/applications/tests/test_mixed_integer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/smt/applications/tests/test_mixed_integer.py b/smt/applications/tests/test_mixed_integer.py index abfaf972b..f8c1d689f 100644 --- a/smt/applications/tests/test_mixed_integer.py +++ b/smt/applications/tests/test_mixed_integer.py @@ -23,6 +23,8 @@ OrdinalVariable, CategoricalVariable, ) +import smt.utils.design_space as ds + from smt.sampling_methods import LHS from smt.surrogate_models import ( KRG, @@ -300,7 +302,8 @@ def test_examples(self): self.run_mixed_integer_context_example() self.run_hierarchical_variables_Goldstein() self.run_mixed_discrete_design_space_example() - self.run_hierarchical_design_space_example() + if ds.HAS_CONFIG_SPACE: + self.run_hierarchical_design_space_example() # works only with config space impl def run_mixed_integer_lhs_example(self): import numpy as np