[New-bugs-announce] [issue16661] test_posix.test_getgrouplist fails on some systems - incorrectly comparing getgroups and getgrouplist results
Gregory P. Smith
report at bugs.python.org
Tue Dec 11 04:46:15 CET 2012
New submission from Gregory P. Smith:
test_posix.test_getgrouplist is failing for me on my Linux (ubuntu precise) based desktop at work.
It looks like posix.getgrouplist() is returning all of the larger GIDs. The lowest one it is reporting for my user is 499 but the more distro specific groups that I am are not included in its 18 element long list it returns so the test fails:
test test_posix failed -- Traceback (most recent call last):
File "cpython/default/Lib/test/test_posix.py", line 660, in test_getgrouplist
AssertionError: Items in the first set but not the second:
strace reveals that the 'id -G' command this test is trying to compare against calls getgroups() while posix.getgrouplist() appears to do something else that does not make that syscall.
posix.getgroups() does the same thing as 'id -G', this test for posix.getgrouplist(username, uid) is making an incorrect assertion.
components: Library (Lib)
stage: needs patch
title: test_posix.test_getgrouplist fails on some systems - incorrectly comparing getgroups and getgrouplist results
versions: Python 3.3, Python 3.4
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce