mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-30 09:55:39 +00:00
Merge main into array-api (#1401)
Co-authored-by: Martin Schuck <57562633+amacati@users.noreply.github.com> Co-authored-by: Kallinteris Andreas <30759571+Kallinteris-Andreas@users.noreply.github.com> Co-authored-by: James Mochizuki-Freeman <jameymmf@gmail.com>
This commit is contained in:
@@ -43,21 +43,13 @@ def check_rendered(rendered_frame, mode: str):
|
||||
|
||||
|
||||
# We do not check render_mode for some mujoco envs and any old Gym environment wrapped by `GymEnvironment`
|
||||
render_mode_env_specs = [
|
||||
spec
|
||||
for spec in all_testing_env_specs
|
||||
if "mujoco" not in spec.entry_point or spec.version >= 4
|
||||
]
|
||||
render_mode_env_specs = [spec for spec in all_testing_env_specs]
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"spec", render_mode_env_specs, ids=[spec.id for spec in render_mode_env_specs]
|
||||
)
|
||||
def test_render_modes(spec):
|
||||
"""There is a known issue where rendering a mujoco environment then mujoco-py will cause an error on non-mac based systems.
|
||||
|
||||
Therefore, we are only testing with mujoco environments.
|
||||
"""
|
||||
env = spec.make()
|
||||
|
||||
assert "rgb_array" in env.metadata["render_modes"]
|
||||
|
Reference in New Issue
Block a user