3e0a6a36060e26d261cd867b3e489e0a341dee10,dm_control/mujoco/engine_test.py,MujocoEngineTest,testDivergenceException,#MujocoEngineTest#Any#,245

Before Change


    with self.assertRaisesRegexp(control.PhysicsError, warning_name):
      self._physics.check_invalid_state()
    self._physics.reset()
    self._physics.check_invalid_state()

  @parameterized.parameters(float("inf"), float("nan"), 1e15)
  def testBadQpos(self, bad_value):
    with self._physics.reset_context():

After Change


      with self._physics.check_invalid_state():
        self._physics.data.warning[warning_enum].number = 1
    // Existing warnings should not raise an exception.
    with self._physics.check_invalid_state():
      pass
    self._physics.reset()
    with self._physics.check_invalid_state():
      pass
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deepmind/dm_control
Commit Name: 3e0a6a36060e26d261cd867b3e489e0a341dee10
Time: 2018-10-10
Author: alimuldal@google.com
File Name: dm_control/mujoco/engine_test.py
Class Name: MujocoEngineTest
Method Name: testDivergenceException


Project Name: deepmind/dm_control
Commit Name: 3e0a6a36060e26d261cd867b3e489e0a341dee10
Time: 2018-10-10
Author: alimuldal@google.com
File Name: dm_control/mujoco/engine_test.py
Class Name: MujocoEngineTest
Method Name: testBadQpos


Project Name: deepmind/dm_control
Commit Name: 3e0a6a36060e26d261cd867b3e489e0a341dee10
Time: 2018-10-10
Author: alimuldal@google.com
File Name: dm_control/mujoco/engine.py
Class Name: Physics
Method Name: step