瀏覽代碼

add new_step_api to custom env during testing

saleml 2 年之前
父節點
當前提交
a5d7130e19
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tests/test_wrappers.py

+ 1 - 0
tests/test_wrappers.py

@@ -196,6 +196,7 @@ class EmptyEnvWithExtraObs(EmptyEnv):
 
     def __init__(self) -> None:
         super().__init__(size=5)
+        self.new_step_api = True
         self.observation_space["size"] = gym.spaces.Box(
             low=0, high=np.iinfo(np.uint).max, shape=(2,), dtype=np.uint
         )