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.

Author gregory.p.smith
Recipients gregory.p.smith
Date 2012-12-11.03:46:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1355197575.99.0.863883653591.issue16661@psf.upfronthosting.co.za>
In-reply-to
Content
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
    pwd.getpwuid(os.getuid())[3])))
AssertionError: Items in the first set but not the second:
128
4
104
44
46
20
24
25

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.
History
Date User Action Args
2012-12-11 03:46:16gregory.p.smithsetrecipients: + gregory.p.smith
2012-12-11 03:46:15gregory.p.smithsetmessageid: <1355197575.99.0.863883653591.issue16661@psf.upfronthosting.co.za>
2012-12-11 03:46:15gregory.p.smithlinkissue16661 messages
2012-12-11 03:46:14gregory.p.smithcreate