From 23a2cd3b10dd4c0d1c7c4ceddb57c0ba7d8bc418 Mon Sep 17 00:00:00 2001 From: Justin Carpentier <justin.carpentier@inria.fr> Date: Wed, 4 Aug 2021 08:46:53 +0200 Subject: [PATCH] test: fix user type test according to NumPy version --- unittest/python/test_user_type.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unittest/python/test_user_type.py b/unittest/python/test_user_type.py index f9408362..bd9f7509 100644 --- a/unittest/python/test_user_type.py +++ b/unittest/python/test_user_type.py @@ -33,7 +33,8 @@ def test(dtype): assert not (mat < mat).all() mat2 = mat.dot(mat.T) - mat2 = np.matmul(mat,mat.T) + if np.__version__ >= '1.17.0': + mat2 = np.matmul(mat,mat.T) def test_cast(from_dtype,to_dtype): np.can_cast(from_dtype,to_dtype) -- GitLab