From 67fa32bdbaac1985d8eff56a4ad04b7991b317e1 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sun, 31 Mar 2024 21:48:54 +0200 Subject: [PATCH] tests: ignore __pycache__ in are_these_two_directories_the_same --- tests/conftest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index b2cd4c1..49d4d71 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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():