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>
tempfile.TemporaryDirectory#157579: Fix race condition in the cleanup oftempfile.TemporaryDirectory(gh-157579: Fix race condition in the cleanup oftempfile.TemporaryDirectory#157580)(cherry picked from commit 5c20517)
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)