Unverified Commit df5bc2dc authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
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
......@@ -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())
......
Supports Markdown
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