Skip to content

Commit

Permalink
Fixed tests for Car racing v2 (#2964)
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudo-rnd-thoughts committed Jul 14, 2022
1 parent ddce4a5 commit f3f8a97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/envs/test_env_implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_carracing_domain_randomize():
CarRacing DomainRandomize should have different colours at every reset.
However, it should have same colours when `options={"randomize": False}` is given to reset.
"""
env = gym.make("CarRacing-v1", domain_randomize=True)
env = gym.make("CarRacing-v2", domain_randomize=True)

road_color = env.road_color
bg_color = env.bg_color
Expand Down
2 changes: 1 addition & 1 deletion tests/envs/test_make.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def test_make_render_mode():
TypeError,
match=re.escape("got an unexpected keyword argument 'render'"),
):
gym.make("CarRacing-v1", render="human")
gym.make("CarRacing-v2", render="human")


def test_make_kwargs():
Expand Down
2 changes: 1 addition & 1 deletion tests/envs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def try_make_env(env_spec: EnvSpec) -> Optional[gym.Env]:
"MountainCarContinuous-v0",
"LunarLander-v2",
"LunarLanderContinuous-v2",
"CarRacing-v1",
"CarRacing-v2",
"Blackjack-v1",
"Reacher-v4",
]
Expand Down

0 comments on commit f3f8a97

Please sign in to comment.