Skip to content

gh-157579: Fix TemporaryDirectory cleanup fallbacks with bytes paths - #162116

Open
encukou wants to merge 4 commits into
python:mainfrom
encukou:tempdir-cleanup-bytes
Open

encukou wants to merge 4 commits into
python:mainfrom
encukou:tempdir-cleanup-bytes

Conversation

@encukou

@encukou encukou commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

When porting GH-157580 to 3.11, @omercnet and I noticed (independently) that tempfile.TemporaryDirectory's cleanup error handling can't handle bytes paths.

This fixes that, and adds tests written for GH-161944 (the 3.11 backport).

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