Skip to content

gh-135812: Respect ignore_cleanup_errors in TemporaryDirectory permission reset#150696

Open
ImFeH2 wants to merge 1 commit into
python:mainfrom
ImFeH2:issue-135812
Open

gh-135812: Respect ignore_cleanup_errors in TemporaryDirectory permission reset#150696
ImFeH2 wants to merge 1 commit into
python:mainfrom
ImFeH2:issue-135812

Conversation

@ImFeH2
Copy link
Copy Markdown
Contributor

@ImFeH2 ImFeH2 commented Jun 1, 2026

Fix tempfile.TemporaryDirectory so that ignore_cleanup_errors=True also suppresses PermissionError raised while resetting permissions during cleanup.

Add regression tests for both ignored and non-ignored cleanup behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant