Skip to content

Commit

Permalink
fixing broken tests: pandapower Exception was catched - legacy behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
BDonnot committed Oct 26, 2023
1 parent d60b257 commit bbcf404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grid2op/tests/test_Environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def test_reset_after_blackout_withdetailed_info(self, env=None):
obs, reward, done, info = env.step(env.action_space())
# at this stage there is a cascading failure
assert len(info["exception"])
assert isinstance(info["exception"][0], DivergingPowerFlow)
assert isinstance(info["exception"][0], BackendError)
assert "detailed_infos_for_cascading_failures" in info
assert len(info["detailed_infos_for_cascading_failures"])
# reset the grid
Expand Down

0 comments on commit bbcf404

Please sign in to comment.