Skip to content

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

Merged
Yhg1s merged 2 commits into
python:3.12from
encukou:backport-58ed025-3.12
Oct 25, 2026
Merged

Yhg1s merged 2 commits into
python:3.12from
encukou:backport-58ed025-3.12

Conversation

@encukou

@encukou encukou commented Oct 9, 2026

Copy link
Copy Markdown
Member

(cherry picked from commit 5c20517)

  • Add root user checks to test.support

This partially backports commit 86b8617 (GH-146195); making existing tests use the helper is omitted.

(cherry picked from commit 86b8617)

(cherry picked from commit e004cf8)

miss-islington and others added 2 commits October 9, 2026 17:30
…e.TemporaryDirectory` (pythonGH-157580) (pythonGH-158430)

* pythongh-157579: Fix race condition in the cleanup of `tempfile.TemporaryDirectory` (pythonGH-157580)

(cherry picked from commit 5c20517)

* Add root user checks to test.support

This partially backports commit 86b8617
(pythonGH-146195); making existing tests use the helper is omitted.

---------
(cherry picked from commit 58ed025)

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
@Yhg1s
Yhg1s merged commit c39b52d into python:3.12 Oct 25, 2026
30 checks passed
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.

5 participants