From 9de3228ef4f4f0579e0823c1329ce14638e24374 Mon Sep 17 00:00:00 2001 From: pseudo-rnd-thoughts Date: Tue, 7 Jan 2025 22:24:55 +0000 Subject: [PATCH] Add warnings to dm-control --- tests/test_dm_control.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_dm_control.py b/tests/test_dm_control.py index aa7631b..ab4202c 100644 --- a/tests/test_dm_control.py +++ b/tests/test_dm_control.py @@ -45,9 +45,10 @@ def test_dm_control_suite_envs(): "A Box observation space maximum value is infinity. This is probably too high.", "For Box action spaces, we recommend using a symmetric and normalized space (range=[-1, 1] or [0, 1]). See https://stable-baselines3.readthedocs.io/en/master/guide/rl_tips.html for more information.", "Calling `env.close()` on the closed environment should be allowed, but it raised an exception: _data", - "`in1d` is deprecated. Use `np.isin` instead.", + "Calling `env.close()` on the closed environment should be allowed, but it raised an exception: 'Physics' object has no attribute '_data'", ] ] +CHECK_ENV_IGNORE_WARNINGS.append("`in1d` is deprecated. Use `np.isin` instead.") @pytest.mark.parametrize("env_id", DM_CONTROL_ENV_IDS)