Skip to content

Commit 23a2cd3

Browse files
committed
test: fix user type test according to NumPy version
1 parent c056226 commit 23a2cd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

unittest/python/test_user_type.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def test(dtype):
3333
assert not (mat < mat).all()
3434

3535
mat2 = mat.dot(mat.T)
36-
mat2 = np.matmul(mat,mat.T)
36+
if np.__version__ >= '1.17.0':
37+
mat2 = np.matmul(mat,mat.T)
3738

3839
def test_cast(from_dtype,to_dtype):
3940
np.can_cast(from_dtype,to_dtype)

0 commit comments

Comments
 (0)