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 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. ---------- components: Library (Lib) messages: 177320 nosy: gregory.p.smith priority: normal severity: normal stage: needs patch status: open title: test_posix.test_getgrouplist fails on some systems - incorrectly comparing getgroups and getgrouplist results type: behavior versions: Python 3.3, Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16661> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com