Skip to content

Commit 220203c

Browse files
committed
tests(tests_shutil): fix comment with check_args_to_onerror
- `os.unlink` is used since 2100b42. - `os.rmdir` is used since 67be92b. (Note that the special case for Linux/ZFS is not covered [1], and might actually not work anymore since the changes around handling/setting `self.errorState`.) 1: https://codecov.io/gh/python/cpython/src/492d513ccb/Lib/test/test_shutil.py#L354...355 Ref: https://bugs.python.org/issue4489
1 parent 8203c73 commit 220203c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_shutil.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ def check_args_to_onerror(self, func, arg, exc):
339339
# on a directory that is chmod 500, which will fail.
340340
# This function is run when shutil.rmtree fails.
341341
# 99.9% of the time it initially fails to remove
342-
# a file in the directory, so the first time through
343-
# func is os.remove.
342+
# the file or directory in the directory, so func
343+
# is os.unlink or os.rmdir.
344344
# However, some Linux machines running ZFS on
345345
# FUSE experienced a failure earlier in the process
346346
# at os.listdir. The first failure may legally

0 commit comments

Comments
 (0)