diff --git a/test/test_configs.py b/test/test_configs.py index 43cd8b6c912..ed9830b3a12 100644 --- a/test/test_configs.py +++ b/test/test_configs.py @@ -3926,7 +3926,8 @@ def test_td3_trainer_uses_loss_bounds_without_collector_env(self, collector_cls) ) class TestHydraParsing: @pytest.fixture(autouse=True, scope="module") - def init_hydra(self): + @classmethod + def init_hydra(cls): from hydra.core.global_hydra import GlobalHydra GlobalHydra.instance().clear()