From f11119c98069e90ecca7eff7f00f771975cc5749 Mon Sep 17 00:00:00 2001 From: relf Date: Tue, 5 Dec 2023 11:07:23 +0100 Subject: [PATCH] Fix platform check --- smt/applications/tests/test_ego.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smt/applications/tests/test_ego.py b/smt/applications/tests/test_ego.py index d93029b98..ef79cad82 100644 --- a/smt/applications/tests/test_ego.py +++ b/smt/applications/tests/test_ego.py @@ -11,7 +11,7 @@ import os import unittest import numpy as np -from sys import argv +from sys import argv, platform try: import matplotlib @@ -1005,7 +1005,7 @@ def f_obj(X): ) x_opt, y_opt, dnk, x_data, y_data = ego.optimize(fun=f_obj) if ds.HAS_CONFIG_SPACE: # results differs wrt config_space impl - if os.platform.system() == "Linux": # results differs wrt platform + if platform == "Linux": # results differs wrt platform self.assertAlmostEqual(np.sum(y_data), 1.0355815090110578, delta=1e-12) self.assertAlmostEqual(np.sum(x_data), 38.23494224077761, delta=1e-12) else: