Skip to content

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

Open
encukou wants to merge 2 commits into
python:3.12from
encukou:backport-58ed025-3.12
Open

encukou wants to merge 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>
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.

3 participants