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:
Mark Towers
2025-06-10 14:16:42 +01:00
committed by GitHub
parent 3ad2527f38
commit 3c17911700
116 changed files with 513 additions and 2802 deletions

View File

@@ -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"]