Skip to content

Commit 5ec971d

Browse files
committed
🐛 Fix ruff errors
1 parent e139a56 commit 5ec971d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from __future__ import annotations
44

55
import hashlib
6-
import os
76
import shutil
87
from pathlib import Path
98
from typing import TYPE_CHECKING, NoReturn
@@ -1056,7 +1055,7 @@ def test_download_unzip_data(tmp_path: Path) -> None:
10561055

10571056
extracted_path = save_dir_path / "test_directory"
10581057
# to avoid hidden files in case of MAC-OS or Windows (?)
1059-
extracted_dirs = [f for f in os.listdir(extracted_path) if not f.startswith(".")]
1058+
extracted_dirs = [f for f in Path.iterdir(extracted_path) if not f.startswith(".")]
10601059
extracted_dirs.sort() # ensure same ordering
10611060
assert extracted_dirs == ["dir1", "dir2", "dir3"]
10621061

0 commit comments

Comments
 (0)