Skip to content

Commit bf636b4

Browse files
yuvaltassacopybara-github
authored andcommitted
Remove test for wrong actuator order.
PiperOrigin-RevId: 447565813 Change-Id: Ib6e619aafe771158ebf1916c4c73da6cb710764c
1 parent 85b2286 commit bf636b4

2 files changed

Lines changed: 0 additions & 24 deletions

File tree

dm_control/mujoco/index_test.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
MODEL_NO_NAMES = assets.get_contents('cartpole_no_names.xml')
2828
MODEL_3RD_ORDER_ACTUATORS = assets.get_contents(
2929
'model_with_third_order_actuators.xml')
30-
MODEL_INCORRECT_ACTUATOR_ORDER = assets.get_contents(
31-
'model_incorrect_actuator_order.xml')
3230

3331
FIELD_REPR = {
3432
'act': ('FieldIndexer(act):\n'
@@ -169,15 +167,6 @@ def testIndexThirdOrderActuators(self, field_name, key, numeric_key):
169167
# indexing.
170168
np.testing.assert_array_equal(field[numeric_key], indexer[key])
171169

172-
def testIncorrectActuatorOrder(self):
173-
# Our indexing of third-order actuators relies on an undocumented
174-
# requirement of MuJoCo's compiler that all third-order actuators come after
175-
# all second-order actuators. This test ensures that the rule still holds
176-
# (e.g. in future versions of MuJoCo).
177-
with self.assertRaisesRegex(
178-
ValueError, '2nd-order actuators must come before 3rd-order'):
179-
wrapper.MjModel.from_xml_string(MODEL_INCORRECT_ACTUATOR_ORDER)
180-
181170
@parameterized.parameters(
182171
# (field name, named index key)
183172
('xpos', 'pole'),

dm_control/mujoco/testing/assets/model_incorrect_actuator_order.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)