From cee8d5910708cfc191b99d63f55a88266997f604 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Tue, 21 Nov 2023 20:19:47 +0100 Subject: [PATCH] remove 'mode' from render() for all dummy envs (test suite) --- test/test_black_box.py | 2 +- test/test_fancy_registry.py | 2 +- test/test_replanning_sequencing.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_black_box.py b/test/test_black_box.py index 8cdc543..c1a760a 100644 --- a/test/test_black_box.py +++ b/test/test_black_box.py @@ -41,7 +41,7 @@ class ToyEnv(gym.Env): obs, reward, terminated, truncated, info = np.array([-1]), 1, False, False, {} return obs, reward, terminated, truncated, info - def render(self, mode="human"): + def render(self): pass diff --git a/test/test_fancy_registry.py b/test/test_fancy_registry.py index aad076b..849b36f 100644 --- a/test/test_fancy_registry.py +++ b/test/test_fancy_registry.py @@ -33,7 +33,7 @@ class ToyEnv(gym.Env): obs, reward, terminated, truncated, info = np.array([-1]), 1, False, False, {} return obs, reward, terminated, truncated, info - def render(self, mode="human"): + def render(self): pass diff --git a/test/test_replanning_sequencing.py b/test/test_replanning_sequencing.py index c2edf42..db463c8 100644 --- a/test/test_replanning_sequencing.py +++ b/test/test_replanning_sequencing.py @@ -37,7 +37,7 @@ class ToyEnv(gym.Env): obs, reward, terminated, truncated, info = np.array([-1]), 1, False, False, {} return obs, reward, terminated, truncated, info - def render(self, mode="human"): + def render(self): pass