Skip to content

[3.15] gh-157579: Fix race condition in the cleanup of tempfile.TemporaryDirectory (GH-157580) - #158431

Merged
hugovk merged 1 commit into
python:3.15from
miss-islington:backport-5c20517-3.15
Oct 2, 2026
Merged

hugovk merged 1 commit into
python:3.15from
miss-islington:backport-5c20517-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

(cherry picked from commit 5c20517)

Co-authored-by: Stan Ulbrych stan@python.org
Co-authored-by: Petr Viktorin encukou@gmail.com

…raryDirectory` (pythonGH-157580)

(cherry picked from commit 5c20517)

Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
@read-the-docs-community

Copy link
Copy Markdown

@encukou

encukou commented Oct 2, 2026

Copy link
Copy Markdown
Member

!buildbot Android

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @encukou for commit 6341a9f 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F158431%2Fmerge

The command will test the builders whose names match following regular expression: Android

The builders matched are:

  • aarch64 Android PR
  • AMD64 Android PR

@encukou

encukou commented Oct 2, 2026

Copy link
Copy Markdown
Member

@hugovk, please consider this for 3.15.

There's an Android failure on 3.13 that doesn't happen here or on 3.14. (The tests are intentionally strict. I expected we'd need to relax them on in older versions, but intentionally. If Python doesn't wrap the necessary API, the cleanup is less secure, so while the code relies on feature detection, tests don't.)
Alas, testing on Android isn't straightforward :)

@hugovk
hugovk merged commit 06ef3d4 into python:3.15 Oct 2, 2026
105 of 108 checks passed
@miss-islington
miss-islington deleted the backport-5c20517-3.15 branch October 2, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants