skipif should be or and not and
@@ -30,7 +30,7 @@ from cupy import testing
'order': ["C", "F"]
}))
@pytest.mark.skipif(cupy.cuda.runtime.is_hip, reason="tests for CUDA only")
-@pytest.mark.skipif(not scipy_available and not pylibraft_available,
+@pytest.mark.skipif(not scipy_available or not pylibraft_available,
reason='requires scipy and pylibraft')
class TestCdist(unittest.TestCase):
@@ -82,7 +82,7 @@ class TestCdist(unittest.TestCase):
'order': ["C", "F"]
}))
@pytest.mark.skipif(cupy.cuda.runtime.is_hip, reason="tests for CUDA only")
-@pytest.mark.skipif(not scipy_available and not pylibraft_available,
+@pytest.mark.skipif(not scipy_available or not pylibraft_available,
reason='requires scipy and pylibraft')
class TestDistanceMatrix(unittest.TestCase):
@@ -107,7 +107,7 @@ class TestDistanceMatrix(unittest.TestCase):
'order': ["C", "F"]
}))
@pytest.mark.skipif(cupy.cuda.runtime.is_hip, reason="tests for CUDA only")
-@pytest.mark.skipif(not scipy_available and not pylibraft_available,
+@pytest.mark.skipif(not scipy_available or not pylibraft_available,
reason='requires scipy and pylibraft')
class TestDistanceFunction(unittest.TestCase):
