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_posix.test_initgroups fails when running with no supplementary groups
Type: Stage: resolved
Components: Tests Versions: Python 3.3, Python 3.4, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Rosuav, python-dev
Priority: normal Keywords: patch

Created on 2014-01-14 04:07 by Rosuav, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_posix.patch Rosuav, 2014-01-14 04:07 Patch to test_posix to fix test_initgroups review
Messages (2)
msg208069 - (view) Author: Chris Angelico (Rosuav) * Date: 2014-01-14 04:07
When tests are run from an Upstart job in a minimal environment, test_posix.test_initgroups fails as it attempts to find the max() of an empty list of supplementary groups.

Problem sighted with 2.7, 3.3, and 3.x branches. Patch derived from 3.x (default branch), applies cleanly to 2.7 and 3.3 as well.
msg212529 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-03-02 00:14
New changeset 82bcc626ffd4 by Benjamin Peterson in branch '3.3':
fix test_posix.test_initgroups to work without supplemental groups (closes #20249)
http://hg.python.org/cpython/rev/82bcc626ffd4

New changeset 1fbec1c44911 by Benjamin Peterson in branch '2.7':
fix test_posix.test_initgroups to work without supplemental groups (closes #20249)
http://hg.python.org/cpython/rev/1fbec1c44911

New changeset a0abc7555d0e by Benjamin Peterson in branch 'default':
merge 3.3 (#20249)
http://hg.python.org/cpython/rev/a0abc7555d0e
History
Date User Action Args
2022-04-11 14:57:56adminsetgithub: 64448
2014-03-02 00:14:56python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg212529

resolution: fixed
stage: resolved
2014-01-14 04:07:37Rosuavcreate