Fix read-from-uninitialized-memory in bindings_test.py
PiperOrigin-RevId: 684082155 Change-Id: I6f3030559ebda4eda28c17ab866c7502c74e5862
This commit is contained in:
committed by
Copybara-Service
parent
9a0dc20821
commit
5dcc31a6aa
@@ -1360,12 +1360,9 @@ Euler integrator, semi-implicit in velocity.
|
|||||||
# (e.g. because the internal output buffer is too small)
|
# (e.g. because the internal output buffer is too small)
|
||||||
self.assertIn('mujoco', mujoco.mj_printSchema(flg_html, flg_pad))
|
self.assertIn('mujoco', mujoco.mj_printSchema(flg_html, flg_pad))
|
||||||
|
|
||||||
def test_pickle_mjdata_before_step(self):
|
def test_pickle_mjdata_clean(self):
|
||||||
data2 = pickle.loads(pickle.dumps(self.data))
|
data2 = pickle.loads(pickle.dumps(self.data))
|
||||||
attr_to_compare = (
|
attr_to_compare = ('time', 'qpos', 'qvel', 'mocap_pos', 'L')
|
||||||
'time', 'qpos', 'qvel', 'qacc', 'xpos', 'mocap_pos',
|
|
||||||
'warning', 'energy', 'contact', 'efc_J', 'L'
|
|
||||||
)
|
|
||||||
self._assert_attributes_equal(data2, self.data, attr_to_compare)
|
self._assert_attributes_equal(data2, self.data, attr_to_compare)
|
||||||
|
|
||||||
def test_pickle_mjdata(self):
|
def test_pickle_mjdata(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user