Rename to gymnasium

This commit is contained in:
pseudo-rnd-thoughts
2022-09-08 10:10:07 +01:00
parent 316f616f14
commit 640c509109
289 changed files with 1441 additions and 1447 deletions

View File

@@ -4,9 +4,9 @@ import warnings
import numpy as np
import pytest
import gym.error
from gym.spaces import Box
from gym.spaces.box import get_inf
import gymnasium.error
from gymnasium.spaces import Box
from gymnasium.spaces.box import get_inf
@pytest.mark.parametrize(
@@ -310,7 +310,7 @@ def test_sample_mask():
"""Box cannot have a mask applied."""
space = Box(0, 1)
with pytest.raises(
gym.error.Error,
gymnasium.error.Error,
match=re.escape("Box.sample cannot be provided a mask, actual value: "),
):
space.sample(mask=np.array([0, 1, 0], dtype=np.int8))