2d44ed4968f079011dcc77e5a4557d23033a9c21,gym/monitoring/tests/test_monitor.py,,test_write_upon_reset_false,#,23
Before Change
def test_write_upon_reset_false():
with helpers.tempdir() as temp:
env = gym.make("CartPole-v0")
env.monitor.start(temp, video_callable=False, write_upon_reset=False)
env.reset()
files = glob.glob(os.path.join(temp, "*"))
assert not files, "Files: {}".format(files)
env.monitor.close()
files = glob.glob(os.path.join(temp, "*"))
assert len(files) > 0
After Change
def test_write_upon_reset_false():
with helpers.tempdir() as temp:
env = gym.make("CartPole-v0")
env = Monitor(directory=temp, video_callable=False, write_upon_reset=False)(env)
env.reset()
files = glob.glob(os.path.join(temp, "*"))
assert not files, "Files: {}".format(files)
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 5
Instances
Project Name: openai/gym
Commit Name: 2d44ed4968f079011dcc77e5a4557d23033a9c21
Time: 2016-12-23
Author: nottombrown@gmail.com
File Name: gym/monitoring/tests/test_monitor.py
Class Name:
Method Name: test_write_upon_reset_false
Project Name: openai/gym
Commit Name: 2d44ed4968f079011dcc77e5a4557d23033a9c21
Time: 2016-12-23
Author: nottombrown@gmail.com
File Name: gym/monitoring/tests/test_monitor.py
Class Name:
Method Name: test_no_monitor_reset_unless_done
Project Name: openai/gym
Commit Name: 2d44ed4968f079011dcc77e5a4557d23033a9c21
Time: 2016-12-23
Author: nottombrown@gmail.com
File Name: gym/monitoring/tests/test_monitor.py
Class Name:
Method Name: test_only_complete_episodes_written
Project Name: openai/gym
Commit Name: 2d44ed4968f079011dcc77e5a4557d23033a9c21
Time: 2016-12-23
Author: nottombrown@gmail.com
File Name: gym/monitoring/tests/test_monitor.py
Class Name:
Method Name: test_write_upon_reset_true
Project Name: openai/gym
Commit Name: 2d44ed4968f079011dcc77e5a4557d23033a9c21
Time: 2016-12-23
Author: nottombrown@gmail.com
File Name: gym/benchmarks/tests/test_benchmark.py
Class Name:
Method Name: test
Project Name: openai/gym
Commit Name: 2d44ed4968f079011dcc77e5a4557d23033a9c21
Time: 2016-12-23
Author: nottombrown@gmail.com
File Name: gym/monitoring/tests/test_monitor.py
Class Name:
Method Name: test_video_callable_false_does_not_record
Project Name: openai/gym
Commit Name: 2d44ed4968f079011dcc77e5a4557d23033a9c21
Time: 2016-12-23
Author: nottombrown@gmail.com
File Name: gym/monitoring/tests/test_monitor.py
Class Name:
Method Name: test_write_upon_reset_false