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
pinocchio
Commits
df5bc2dc
Unverified
Commit
df5bc2dc
authored
Oct 14, 2020
by
Justin Carpentier
Committed by
GitHub
Oct 14, 2020
Browse files
Merge pull request #1319 from nim65s/devel
python unittest: use context to open files
parents
100258ad
f04a7f2d
Pipeline
#11662
failed with stage
in 211 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
unittest/python/bindings_urdf.py
View file @
df5bc2dc
...
...
@@ -20,8 +20,9 @@ class TestGeometryObjectUrdfBindings(unittest.TestCase):
model_ref
=
pin
.
buildModelFromUrdf
(
self
.
model_path
,
pin
.
JointModelFreeFlyer
())
def
test_xml
(
self
):
file_content
=
open
(
self
.
model_path
,
"r"
).
read
()
with
open
(
self
.
model_path
)
as
model
:
file_content
=
model
.
read
()
model_ref
=
pin
.
buildModelFromUrdf
(
self
.
model_path
,
pin
.
JointModelFreeFlyer
())
model
=
pin
.
buildModelFromXML
(
file_content
,
pin
.
JointModelFreeFlyer
())
...
...
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