diff --git a/tests/trainer/test_trainer.py b/tests/trainer/test_trainer.py index 2466aef99601d7..16de00caa214a6 100644 --- a/tests/trainer/test_trainer.py +++ b/tests/trainer/test_trainer.py @@ -993,7 +993,6 @@ def setup(self, stage): @pytest.fixture def no_local_file_ops(monkeypatch): monkeypatch.delattr(os.path, "exists") - monkeypatch.delattr(os.path, "isdir") def test_trainer_ensure_no_local_only_file_ops(tmpdir, monkeypatch, no_local_file_ops):