Merge pull request #619 from traversaro:fixpypytests
PiperOrigin-RevId: 494129535 Change-Id: I301cb505a224eaa26df4896924d36c623b1a4a26
This commit is contained in:
@@ -128,6 +128,10 @@ class MuJoCoBindingsTest(parameterized.TestCase):
|
|||||||
np.testing.assert_array_equal(
|
np.testing.assert_array_equal(
|
||||||
qpos_ref, [0.789]*len(self.data.qpos))
|
qpos_ref, [0.789]*len(self.data.qpos))
|
||||||
|
|
||||||
|
# This test is disabled on PyPy as it uses sys.getrefcount
|
||||||
|
# However PyPy is not officially supported by MuJoCo
|
||||||
|
@absltest.skipIf(sys.implementation.name == 'pypy',
|
||||||
|
reason='requires sys.getrefcount')
|
||||||
def test_array_keeps_struct_alive(self):
|
def test_array_keeps_struct_alive(self):
|
||||||
model = mujoco.MjModel.from_xml_string(TEST_XML)
|
model = mujoco.MjModel.from_xml_string(TEST_XML)
|
||||||
qpos0 = model.qpos0
|
qpos0 = model.qpos0
|
||||||
@@ -962,6 +966,10 @@ Euler integrator, semi-implicit in velocity.
|
|||||||
self.assertEqual(sensor_callback.count, 1)
|
self.assertEqual(sensor_callback.count, 1)
|
||||||
self.assertEqual(data_with_sensor.sensordata[0], 17)
|
self.assertEqual(data_with_sensor.sensordata[0], 17)
|
||||||
|
|
||||||
|
# This test is disabled on PyPy as it uses sys.getrefcount
|
||||||
|
# However PyPy is not officially supported by MuJoCo
|
||||||
|
@absltest.skipIf(sys.implementation.name == 'pypy',
|
||||||
|
reason='requires sys.getrefcount')
|
||||||
def test_mjcb_control_not_leak_memory(self):
|
def test_mjcb_control_not_leak_memory(self):
|
||||||
model_instances = []
|
model_instances = []
|
||||||
data_instances = []
|
data_instances = []
|
||||||
|
|||||||
Reference in New Issue
Block a user