This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_pidfd_send_signal can fail on some systems with PermissionError: [Errno 1] Operation not permitted
Type: Stage: patch review
Components: Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: pablogsal
Priority: normal Keywords: patch

Created on 2019-12-29 20:51 by pablogsal, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 17740 merged pablogsal, 2019-12-29 20:54
Messages (2)
msg359004 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2019-12-29 20:51
======================================================================
FAIL: test_pidfd_send_signal (test.test_signal.PidfdSignalTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/test/test_signal.py", line 1287, in test_pidfd_send_signal
    self.assertEqual(cm.exception.errno, errno.EBADF)
AssertionError: 1 != 9
---------------------------------------------------------------------

Example failure:

https://buildbot.python.org/all/#/builders/231/builds/1/steps/5/logs/stdio

We should skip the test if the syscall is not permitted
msg359006 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2019-12-29 21:36
New changeset 8f0703ff92ed2d9ccd52d7e083c7bc26e732a428 by Pablo Galindo in branch 'master':
bpo-39157: Skip test_pidfd_send_signal if the system does not have enough privileges to use pidfd (GH-17740)
https://github.com/python/cpython/commit/8f0703ff92ed2d9ccd52d7e083c7bc26e732a428
History
Date User Action Args
2022-04-11 14:59:24adminsetgithub: 83338
2019-12-29 21:36:03pablogsalsetmessages: + msg359006
2019-12-29 20:54:34pablogsalsetkeywords: + patch
stage: patch review
pull_requests: + pull_request17183
2019-12-29 20:51:55pablogsalcreate