8000 TST Skips test_compare_to_ELKI for arm (#19115) · scikit-learn/scikit-learn@208f060 · GitHub
[go: up one dir, main page]

Skip to content

Commit 208f060

Browse files
thomasjpfanjeremiedbb
authored andcommitted
TST Skips test_compare_to_ELKI for arm (#19115)
* TST Skips test for arm [cd build] * CI Skip for 32bit linux [cd build]
1 parent ac19f5f commit 208f060

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sklearn/cluster/tests/test_optics.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Authors: Shane Grigsby <refuge@rocktalus.com>
22
# Adrin Jalali <adrin.jalali@gmail.com>
33
# License: BSD 3 clause
4+
import platform
5+
import sys
46

57
import numpy as np
68
import pytest
@@ -15,8 +17,10 @@
1517
from sklearn.utils._testing import assert_array_equal
1618
from sklearn.utils._testing import assert_raise_message
1719
from sklearn.utils._testing import assert_allclose
20+
from sklearn.utils.fixes import sp_version, parse_version
1821

1922
from sklearn.cluster.tests.common import generate_clustered_data
23+
from sklearn.utils import _IS_32BIT
2024

2125

2226
rng = np.random.RandomState(0)
@@ -314,6 +318,11 @@ def test_processing_order():
314318
assert_array_equal(clust.ordering_, [0, 1, 2, 3])
315319

316320

321+
@pytest.mark.skipif(sp_version >= parse_version("1.6.0")
322+
and (platform.machine() == "aarch64" or
323+
(sys.platform == "linux" and _IS_32BIT)),
324+
reason=("Test fails for SciPy 1.6.0 on ARM and on 32-bit "
325+
"linux. See #19111"))
317326
def test_compare_to_ELKI():
318327
# Expected values, computed with (future) ELKI 0.7.5 using:
319328
# java -jar elki.jar cli -dbc.in csv -dbc.filter FixedDBIDsFilter

0 commit comments

Comments
 (0)
0