Petr Viktorin added the comment: The test is already skipped if the user is root. It verifies that process 1 can't be touched by non-root users.
The problem is an assumption that process with PID 1 belongs to root. That assumption isn't true in containers: PID 1 is whatever the container was started with -- in this case, likely a test runner or build system. On Linux, we could check if `/proc/1` actually belongs to root. I don't know about other systems, though. Would that change be acceptable? ---------- nosy: +encukou _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue31132> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com