From ae7944ac33a93c6df1d0f33e9dd8d393eab8417d Mon Sep 17 00:00:00 2001 From: George Panchuk Date: Tue, 12 Nov 2024 12:11:12 +0100 Subject: [PATCH] debug --- tests/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/utils.py b/tests/utils.py index a15c2ec4..0e4f1e82 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -26,12 +26,12 @@ def recursive_chmod(path: str, mode: int): """ # Change the permission of the current path print("change permission", path, mode) - os.chmod(path, mode) + os.chmod(str(path), mode) # If the path is a directory, recursively apply chmod to its contents - if os.path.isdir(path): - for entry in os.listdir(path): - full_path = os.path.join(path, entry) + if os.path.isdir(str(path)): + for entry in os.listdir(str(path)): + full_path = os.path.join(str(path), entry) recursive_chmod(full_path, mode) def on_error(func, path, exc_info):