Skip to content

Commit

Permalink
Replace self.assertEqual(None,...) with self.assetIsNone(...)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 317292604
Change-Id: I49521b4b52d4fc587de8f48395d2931f9f9dc2cb
  • Loading branch information
tomwardio committed Jun 22, 2020
1 parent 9ab3af9 commit 6758bed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dm_env_rpc/v1/dm_env_adaptor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ def test_first_running_step(self):

self._connection.send.assert_called_once_with(_SAMPLE_STEP_REQUEST)
self.assertEqual(dm_env.StepType.FIRST, timestep.step_type)
self.assertEqual(None, timestep.reward)
self.assertEqual(None, timestep.discount)
self.assertIsNone(timestep.reward)
self.assertIsNone(timestep.discount)
self.assertEqual({'foo': 5, 'bar': 'goodbye'}, timestep.observation)

def test_mid_running_step(self):
Expand Down Expand Up @@ -195,8 +195,8 @@ def test_reset(self):
timestep = self._env.reset()

self.assertEqual(dm_env.StepType.FIRST, timestep.step_type)
self.assertEqual(None, timestep.reward)
self.assertEqual(None, timestep.discount)
self.assertIsNone(timestep.reward)
self.assertIsNone(timestep.discount)
self.assertEqual({'foo': 5, 'bar': 'goodbye'}, timestep.observation)

def test_reset_changes_spec_raises_error(self):
Expand Down

0 comments on commit 6758bed

Please sign in to comment.