We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d67b516 commit 2bc55f8Copy full SHA for 2bc55f8
grid2op/tests/test_CompactEpisodeData.py
@@ -181,8 +181,11 @@ def test_collection_wrapper_after_run(self):
181
agentClass=OneChange,
182
use_compact_episode_data=True,
183
)
184
- *_, episode_data = runner.run_one_episode(
185
- max_iter=self.max_iter, detailed_output=True,
+ with warnings.catch_warnings():
+ warnings.filterwarnings("ignore")
186
+ *_, episode_data = runner.run_one_episode(
187
+ max_iter=self.max_iter, detailed_output=True,
188
+ )
189
# Check that the type of first action is set bus
190
assert episode_data.action_space.from_vect(episode_data.actions[0]).get_types()[2]
191
@@ -298,4 +301,4 @@ def test_can_return_ep_data(self):
298
301
299
302
300
303
if __name__ == "__main__":
- unittest.main()
304
+ unittest.main()
0 commit comments