From e57a7bff922f2155a1fcb99d43637837cc14bb1b Mon Sep 17 00:00:00 2001 From: Felix Hirwa Nshuti Date: Sun, 17 Mar 2024 11:19:34 +0530 Subject: [PATCH] test: replacing `tmpdir` with `tmp_path` in `tests_pytorch/serve` (#19650) --- tests/tests_pytorch/serve/test_servable_module_validator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tests_pytorch/serve/test_servable_module_validator.py b/tests/tests_pytorch/serve/test_servable_module_validator.py index 578619ece7..fce8828528 100644 --- a/tests/tests_pytorch/serve/test_servable_module_validator.py +++ b/tests/tests_pytorch/serve/test_servable_module_validator.py @@ -37,10 +37,10 @@ def test_servable_module_validator(): @pytest.mark.flaky(reruns=3) -def test_servable_module_validator_with_trainer(tmpdir): +def test_servable_module_validator_with_trainer(tmp_path): callback = ServableModuleValidator() trainer = Trainer( - default_root_dir=tmpdir, + default_root_dir=tmp_path, max_epochs=1, limit_train_batches=2, limit_val_batches=0,