mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-23 15:04:20 +00:00
Adds testing to check_env
that closing a closed environment doesn't raise an error (#564)
Co-authored-by: Quentin GALLOUÉDEC <gallouedec.quentin@gmail.com> Co-authored-by: Quentin Gallouédec <45557362+qgallouedec@users.noreply.github.com>
This commit is contained in:
@@ -58,7 +58,7 @@ class GenericTestEnv(gym.Env):
|
||||
metadata: dict[str, Any] = {"render_modes": []},
|
||||
render_mode: str | None = None,
|
||||
spec: EnvSpec = EnvSpec(
|
||||
"TestingEnv-v0", "testing-env-no-entry-point", max_episode_steps=100
|
||||
"TestingEnv-v0", "tests.testing_env:GenericTestEnv", max_episode_steps=100
|
||||
),
|
||||
):
|
||||
"""Generic testing environment constructor.
|
||||
|
Reference in New Issue
Block a user