From ea16c025519cfd74548fe72563561d55089105eb Mon Sep 17 00:00:00 2001 From: IroNEDR Date: Fri, 16 Aug 2024 00:25:08 +0200 Subject: [PATCH] I-51 persisting issue with array_equal on python3.6 --- tests/test_loop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_loop.py b/tests/test_loop.py index 993e5c6..bb214da 100644 --- a/tests/test_loop.py +++ b/tests/test_loop.py @@ -6,7 +6,7 @@ import logging from typing import Tuple import numpy as np -from numpy.testing import assert_array_equal +from numpy.testing import assert_array_equal, assert_array_almost_equal import pandas as pd import pytest from sklearn.datasets import load_iris @@ -154,7 +154,7 @@ def test_regression(X_n20_scores) -> None: input_data, expected_scores = X_n20_scores clf = loop.LocalOutlierProbability(input_data).fit() scores = clf.local_outlier_probabilities - assert_array_equal(scores, expected_scores) + assert_array_almost_equal(scores, expected_scores, 6) def test_loop_performance(X_n120) -> None: