gh-155717: skip `TMPDIR` writeability test if process user is root (#155891)

picnixz <[email protected]>
Newsgroups gmane.comp.python.cvs
Message-ID <[email protected]>
https://github.com/python/cpython/commit/4dd8f0bbf4ca7dc4e29290b3326ce50f2199e6a6
commit: 4dd8f0bbf4ca7dc4e29290b3326ce50f2199e6a6
branch: main
author: Bénédikt Tran <[email protected]>
committer: picnixz <[email protected]>
date: 2026-08-16T09:48:31Z
summary:

gh-155717: skip `TMPDIR` writeability test if process user is root (#155891)

files:
M Lib/test/_test_multiprocessing.py

diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index 4aaaa22f4274f0..338a31fd7f869e 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -6357,6 +6357,7 @@ def test_nested_startmethod(self):
         self.assertSetEqual(set(results), set([2, 1]))
 
     @unittest.skipIf(os.name == "nt", "requires POSIX")
+    @support.requires_non_root_user
     @support.subTests("mode", [
         os.R_OK,  # read-only directory
         os.R_OK | os.X_OK, # read-only directory

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.