Skip to content

Commit

Permalink
Add utils.testing support for sklearn>=0.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jmyrberg committed Dec 29, 2020
1 parent 6bd0445 commit 9528f70
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_aakr.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
import pytest

from sklearn.datasets import load_linnerud
from sklearn.utils.testing import assert_allclose

try: # scikit-learn < 0.24.0
from sklearn.utils.testing import assert_allclose
except ModuleNotFoundError: # scikit-learn >= 0.24.0
from sklearn.utils._testing import assert_allclose

from aakr import AAKR

Expand Down

0 comments on commit 9528f70

Please sign in to comment.