diff --git a/tests/test_file_download.py b/tests/test_file_download.py index f944f2de4b3..2738c52819a 100644 --- a/tests/test_file_download.py +++ b/tests/test_file_download.py @@ -650,7 +650,7 @@ def test_keep_lock_file(self): with SoftTemporaryDirectory() as tmpdir: with patch("huggingface_hub.file_download.HF_HUB_KEEP_LOCK_FILES", True): - hf_hub_download(DUMMY_MODEL_ID, filename=CONFIG_NAME, cache_dir=tmpdir) + hf_hub_download(DUMMY_MODEL_ID, filename=CONFIG_NAME, cache_dir=tmpdir) lock_file_exist = False for subdir, dirs, files in os.walk(tmpdir): for file in files: