f33a03ea4d71525eabadbe22f31ad0a91607b134,tests/garage/envs/test_normalized_env.py,TestNormalizedEnv,test_does_not_modify_action,#TestNormalizedEnv#,25

Before Change


        step_env(round_trip)

    def test_does_not_modify_action(self):
        inner_env = CartpoleEnv(obs_noise=5.)
        env = NormalizedEnv(inner_env, scale_reward=10.)
        a = env.action_space.sample()
        a_copy = a
        env.reset()
        env.step(a)
        self.assertEquals(a, a_copy)

After Change


        step_env(round_trip)

    def test_does_not_modify_action(self):
        inner_env = PointEnv(goal=(1., 2.))
        env = NormalizedEnv(inner_env, scale_reward=10.)
        a = env.action_space.high + 1.
        a_copy = a
        env.reset()
        env.step(a)
        assert np.array_equal(a, a_copy)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 8

Instances


Project Name: rlworkgroup/garage
Commit Name: f33a03ea4d71525eabadbe22f31ad0a91607b134
Time: 2019-02-05
Author: rjulian@usc.edu
File Name: tests/garage/envs/test_normalized_env.py
Class Name: TestNormalizedEnv
Method Name: test_does_not_modify_action


Project Name: rlworkgroup/garage
Commit Name: f33a03ea4d71525eabadbe22f31ad0a91607b134
Time: 2019-02-05
Author: rjulian@usc.edu
File Name: tests/garage/envs/test_noisy_env.py
Class Name: TestNoisyObservationEnv
Method Name: test_does_not_modify_action


Project Name: rlworkgroup/garage
Commit Name: f33a03ea4d71525eabadbe22f31ad0a91607b134
Time: 2019-02-05
Author: rjulian@usc.edu
File Name: tests/garage/envs/test_noisy_env.py
Class Name: TestDelayedActionEnv
Method Name: test_does_not_modify_action


Project Name: rlworkgroup/garage
Commit Name: f33a03ea4d71525eabadbe22f31ad0a91607b134
Time: 2019-02-05
Author: rjulian@usc.edu
File Name: tests/garage/envs/test_occlusion_env.py
Class Name: TestOcclusionEnv
Method Name: test_does_not_modify_action


Project Name: rlworkgroup/garage
Commit Name: f33a03ea4d71525eabadbe22f31ad0a91607b134
Time: 2019-02-05
Author: rjulian@usc.edu
File Name: tests/garage/envs/test_sliding_mem_env.py
Class Name: TestSlidingMemEnv
Method Name: test_does_not_modify_action