From e6a6f61de7202b493c9fe37c292602a4d2f1e606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Engstr=C3=B8m?= Date: Mon, 10 Jun 2024 03:40:49 +0200 Subject: [PATCH] Fixed bug in test that tried to use np.float128 for Windows. Windows dooes not support this. --- tests/test_cvmatrix.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_cvmatrix.py b/tests/test_cvmatrix.py index 223d96a..7043fdc 100644 --- a/tests/test_cvmatrix.py +++ b/tests/test_cvmatrix.py @@ -428,10 +428,10 @@ def test_dtype(self): center_Ys = [True, False] scale_Xs = [True, False] scale_Ys = [True, False] - dtypes = [np.float16, np.float32, np.float64, np.float128] - if sys.platform.startswith("win"): + dtypes = [np.float16, np.float32, np.float64] + if not sys.platform.startswith("win"): # Windows does not support float128 - dtypes.remove(np.float128) + dtypes.append(np.float128) for center_X, center_Y, scale_X, scale_Y, dtype in product( center_Xs, center_Ys, scale_Xs, scale_Ys, dtypes): naive, fast = self.fit_models(