Skip to content
Snippets Groups Projects
Verified Commit 23a2cd3b authored by Justin Carpentier's avatar Justin Carpentier
Browse files

test: fix user type test according to NumPy version

parent c056226a
No related branches found
No related tags found
No related merge requests found
Pipeline #15500 passed with warnings
...@@ -33,7 +33,8 @@ def test(dtype): ...@@ -33,7 +33,8 @@ def test(dtype):
assert not (mat < mat).all() assert not (mat < mat).all()
mat2 = mat.dot(mat.T) 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): def test_cast(from_dtype,to_dtype):
np.can_cast(from_dtype,to_dtype) np.can_cast(from_dtype,to_dtype)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment