tests: ignore __pycache__ in are_these_two_directories_the_same

This commit is contained in:
Sina Atalay 2024-03-31 21:48:54 +02:00
parent 8dd939bd90
commit 67fa32bdba
1 changed files with 3 additions and 0 deletions

View File

@ -329,6 +329,9 @@ def are_these_two_directories_the_same(
AssertionError: If the two directories are not the same.
"""
for file1 in directory1.iterdir():
if file1.name == "__pycache__":
continue
file2 = directory2 / file1.name
if file1.is_dir():
if not file2.is_dir():