Skip to content

Commit 5ea14b2

Browse files
committed
Check length
1 parent a65a0ea commit 5ea14b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_package_generation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ def test_package_generation(
8181
actual_files = get_all_files_folders(test_project_dir)
8282
# Filter out anything under specific directories to make comparison easier
8383
actual_files = actual_files - {
84-
a for a in actual_files if a.parts[0] in (".git", "__pycache__")
84+
a
85+
for a in actual_files
86+
if len(a.parts) > 0 and a.parts[0] in (".git", "__pycache__")
8587
}
8688

8789
assert actual_files == expected_files

0 commit comments

Comments
 (0)