Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Avasam <[email protected]>
  • Loading branch information
abravalheri and Avasam authored Oct 16, 2024
1 parent faeed50 commit fa79779
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setuptools/_shutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _auto_chmod(
def rmtree(path, ignore_errors=False, onexc=_auto_chmod):
"""
Similar to ``shutil.rmtree`` but automatically executes ``chmod``
for well know Windows failure scenarios.
for well known Windows failure scenarios.
"""
return py311.shutil_rmtree(path, ignore_errors, onexc)

Expand Down
2 changes: 1 addition & 1 deletion setuptools/tests/test_shutil_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_rmtree_readonly(monkeypatch, tmp_path):
some_file.touch()
some_file.chmod(stat.S_IREAD)

expected_count = 1 if sys.platform.startswith("win") else 0
expected_count = int(sys.platform.startswith("win"))
chmod_fn = Mock(wraps=_shutil.attempt_chmod_verbose)
monkeypatch.setattr(_shutil, "attempt_chmod_verbose", chmod_fn)

Expand Down

0 comments on commit fa79779

Please sign in to comment.