[issue7900] posix.getgroups() failure on Mac OS X
R. David Murray
report at bugs.python.org
Tue Nov 16 08:32:57 CET 2010
R. David Murray <rdmurray at bitdance.com> added the comment:
Ronald, on a normal unix system if you add a user to a group, any existing process/terminal session that runs 'id -G' will return the *old* group list. Only a new process/terminal session will see the new group.
On OSX, 'id -G' returns the new group when run in an existing process/terminal session, according to what you wrote.
You can't just remove the 'id -G' from that test, because the test is using 'id -G' to get an independent verification of the list of group numbers as a check against what getgroups returns. On a normal unix system, these two would match. On OSX, they don't.
At the moment I don't see any alternative to skipping the test on OSX with a message that 'id -G' and 'getgroups' do not return the same group list on OSX.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7900>
_______________________________________
More information about the Python-bugs-list
mailing list