Verified Commit 23a2cd3b authored by Justin Carpentier's avatar Justin Carpentier
Browse files

test: fix user type test according to NumPy version

parent c056226a
Pipeline #15500 passed with stage
in 20 minutes and 29 seconds
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment