Skip to content
GitLab
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
8dc3d805
Verified
Commit
8dc3d805
authored
Jul 26, 2021
by
Justin Carpentier
Browse files
test: comment part of the test
Should be reintroduced for newer version of NumPy
parent
0211ccfb
Pipeline
#15339
failed with stage
in 12 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
unittest/python/test_user_type.py
View file @
8dc3d805
import
user_type
import
numpy
as
np
from
packaging
import
version
#
from packaging import version
rows
=
10
cols
=
20
...
...
@@ -11,11 +11,11 @@ def test(mat):
assert
(
mat
==
mat_copy
).
all
()
assert
not
(
mat
!=
mat_copy
).
all
()
if
version
.
parse
(
np
.
__version__
)
>=
version
.
parse
(
"1.21.0"
):
# check if it fixes for new versio of NumPy
mat
.
fill
(
mat
.
dtype
.
type
(
20.
))
mat_copy
=
mat
.
copy
()
assert
((
mat
==
mat_copy
).
all
())
assert
(
not
(
mat
!=
mat_copy
).
all
())
#
if version.parse(np.__version__) >= version.parse("1.21.0"): # check if it fixes for new versio of NumPy
#
mat.fill(mat.dtype.type(20.))
#
mat_copy = mat.copy()
#
assert((mat == mat_copy).all())
#
assert(not (mat != mat_copy).all())
mat_op
=
mat
+
mat
mat_op
=
mat
.
copy
(
order
=
'F'
)
+
mat
.
copy
(
order
=
'C'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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