Fix test failures under NumPy 1.24.
The use of `np.empty` triggers an msan use-of-uninitialized-value error when upgraded. PiperOrigin-RevId: 503975799 Change-Id: I337c8227c8c1e3bd415d7a798fc5e764c88c0875
This commit is contained in:
committed by
Copybara-Service
parent
d7844aa5be
commit
cd99fbd59d
@@ -645,7 +645,7 @@ class MuJoCoBindingsTest(parameterized.TestCase):
|
||||
|
||||
# Check that the res argument must have the right size.
|
||||
with self.assertRaises(TypeError):
|
||||
mujoco.mju_rotVecQuat(np.empty(4, np.float64), vec, quat)
|
||||
mujoco.mju_rotVecQuat(np.zeros(4, np.float64), vec, quat)
|
||||
|
||||
# Check that the vec argument must have the right size.
|
||||
with self.assertRaises(TypeError):
|
||||
|
||||
Reference in New Issue
Block a user