Skip to content

Commit 1f490a5

Browse files
A small fix
1 parent 1f4c0aa commit 1f490a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dpnp/tests/test_linalg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,7 +1753,7 @@ def test_inv_singular_matrix(self, matrix):
17531753
assert_raises(dpnp.linalg.LinAlgError, dpnp.linalg.inv, a_dp)
17541754

17551755
# TODO: remove skipif when Intel MKL 2025.2 is released
1756-
@pytest.mark.skipif(get_intel_mkl_version < "2025.2", reason="mkl<2025.2")
1756+
@pytest.mark.skipif(get_intel_mkl_version() < "2025.2", reason="mkl<2025.2")
17571757
def test_inv_singular_matrix_3D(self):
17581758
a_np = numpy.array(
17591759
[[[1, 2], [3, 4]], [[1, 2], [1, 2]], [[1, 3], [3, 1]]]
@@ -2778,7 +2778,7 @@ def test_slogdet_strides(self):
27782778
# TODO: remove skipif when Intel MKL 2025.2 is released
27792779
# Skip running on cpu because dpnp uses _getrf_batch only on cpu.
27802780
@pytest.mark.skipif(
2781-
is_cpu_device() and get_intel_mkl_version < "2025.2",
2781+
is_cpu_device() and get_intel_mkl_version() < "2025.2",
27822782
reason="mkl<2025.2",
27832783
)
27842784
@pytest.mark.parametrize(

dpnp/tests/third_party/cupy/linalg_tests/test_solve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def test_inv(self, dtype):
215215
xp.linalg.inv(a)
216216

217217
# TODO: remove skipif when Intel MKL 2025.2 is released
218-
@pytest.mark.skipif(get_intel_mkl_version < "2025.2", reason="mkl<2025.2")
218+
@pytest.mark.skipif(get_intel_mkl_version() < "2025.2", reason="mkl<2025.2")
219219
@testing.for_dtypes("ifdFD")
220220
def test_batched_inv(self, dtype):
221221
for xp in (numpy, cupy):

0 commit comments

Comments
 (0)