Skip to content

Commit

Permalink
I-51 persisting issue with array_equal on python3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
IroNEDR committed Aug 15, 2024
1 parent cad31f9 commit ea16c02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ea16c02

Please sign in to comment.