| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
|
||
|
|
||
| _ROOT_IN_POSIX = hasattr(os, 'geteuid') and os.geteuid() == 0 | ||
| requires_root = unittest.skipUnless(_ROOT_IN_POSIX, "test needs root privilege") |
There was a problem hiding this comment.
Can you rename these decorators to requires_root_user and requires_non_root_user? At the first look, I wasn't sure what "root" was about. Root window? Root what? :-) Or maybe requires_root_privilege?
Sorry, something went wrong.
There was a problem hiding this comment.
Ah, you are right - I guess there are several roots :)
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
"Tests / All required checks pass" failed with: Error: The template is not valid. .github/workflows/build.yml (Line: 687, Col: 24): Error reading JToken from JsonReader. Path '', line 0, position 0. Let me click on [Update branch] to try to fix it. |
Sorry, something went wrong.
|
Merged, thanks for tests enhancements. |
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 Debian root 3.x (tier-1) has failed when building commit 86b8617. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/#/builders/345/builds/13827 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Click to see traceback logsTraceback (most recent call last):
File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_pathlib/test_pathlib.py", line 1558, in test_copy_dir_no_read_permission
self.assertRaises(PermissionError, source.copy, target)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: PermissionError not raised by copy
|
Sorry, something went wrong.
|
Will you be able to fix the failure today? |
Sorry, something went wrong.
|
Hi, sorry about that. I am looking into it and will try to fix it ASAP. |
Sorry, something went wrong.
|
Sorry, it was a silly little mistake - #148028 should fix it. |
Sorry, something went wrong.
|
Yea, I posted before looking at the code, and before coffee :) |
Sorry, something went wrong.
|
Oops, I missed that in the review. Hopefully, we have a buildbot running as root (AMD64 Debian root 3.x) which catched the regression. Thanks for fixing the regression. |
Sorry, something went wrong.
) This fixes a bug introduced in commit 86b8617 (pythonGH-146195).
This partially backports commit 86b8617 (pythonGH-146195); making existing tests use the helper is omitted.
This partially backports commit 86b8617 (pythonGH-146195); making existing tests use the helper is omitted.
…raryDirectory (GH-157580) (#158489) * gh-157579: Fix race condition in the cleanup of `tempfile.TemporaryDirectory` (GH-157580) (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. * gh-134993: Add os.lstat() to os.supports_dir_fd (#135188) Co-authored-by: Stan Ulbrych <stan@python.org> Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Petr Viktorin <encukou@gmail.com>
…oraryDirectory` (GH-157580) (GH-158430) * gh-157579: Fix race condition in the cleanup of `tempfile.TemporaryDirectory` (GH-157580) (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. --------- Co-authored-by: Stan Ulbrych <stan@python.org> Co-authored-by: Petr Viktorin <encukou@gmail.com>
| Back | FazBrowse Home | New Git URL |
Hi, when looking into unrelated changes, I realized that the check for root privilege is duplicated on several places and can be moved to test.support.
This change also improves test_ownership_after_flush because without root, it skips it before running potentially slow pwd.getpwall.
I am unsure whether this is trivial enough to not require an issue - I am happy to create one if that is not the case.