Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
eigenpy
Commits
23a2cd3b
Verified
Commit
23a2cd3b
authored
Aug 04, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
unittest/python/test_user_type.py
View file @
23a2cd3b
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment