]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38692: Skip test_posix.test_pidfd_open() on EPERM (GH-17290)
authorVictor Stinner <vstinner@python.org>
Thu, 21 Nov 2019 11:54:54 +0000 (12:54 +0100)
committerGitHub <noreply@github.com>
Thu, 21 Nov 2019 11:54:54 +0000 (12:54 +0100)
commit3ab479a2d1959923c9ab80c227dd1f39720b4e2d
tree6e13436ee858715712bf215524b69eddbfd29e5e
parent0127bb1c5c3286f87e284ff6083133bfdcfd5a4f
bpo-38692: Skip test_posix.test_pidfd_open() on EPERM (GH-17290)

Skip the test_posix.test_pidfd_open() test if os.pidfd_open() fails
with a PermissionError. This situation can happen in a Linux sandbox
using a syscall whitelist which doesn't allow the pidfd_open()
syscall yet (like systemd-nspawn).
Lib/test/test_posix.py
Misc/NEWS.d/next/Tests/2019-11-20-15-42-06.bpo-38692.aqAvyF.rst [new file with mode: 0644]