瀏覽代碼

remove deprecated None warns pytest

Rodrigo Perez-Vicente 2 年之前
父節點
當前提交
a2cc88b80f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/test_envs.py

+ 1 - 1
tests/test_envs.py

@@ -28,7 +28,7 @@ def test_env(spec):
     env = spec.make(disable_env_checker=True).unwrapped
 
     # Test if env adheres to Gym API
-    with pytest.warns(None) as warnings:
+    with pytest.warns() as warnings:
         check_env(env)
 
     for warning in warnings.list: