mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-29 01:27:29 +00:00
Rename to gymnasium
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user