Issue10822
Created on 2011-01-04 11:08 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| 10822.patch | rosslagerwall, 2011-01-11 06:52 | Fix test | ||
| Messages (5) | |||
|---|---|---|---|
| msg125303 - (view) | Author: Antoine Pitrou (pitrou) * ![]() |
Date: 2011-01-04 11:08 | |
Under OpenSolaris, I get the following failure: $ pfexec ./python -m test test_posix [1/1] test_posix test test_posix failed -- Traceback (most recent call last): File "/home/antoine/py3k/cc/Lib/test/test_posix.py", line 402, in test_getgroups set(posix.getgroups())) AssertionError: Items in the first set but not the second: 0 |
|||
| msg125984 - (view) | Author: Ross Lagerwall (rosslagerwall) ![]() |
Date: 2011-01-11 06:52 | |
It seems to work fine on OpenIndiana (running normally or as root). According to the posix specification, "It is implementation-defined whether getgroups() also returns the effective group ID in the grouplist array." But, id -G prints all group IDs. Perhaps, it failed because 0 was the effective gid & it was included by "id -G" but wasn't being returned by posix.getgroups(). This fix changes the test to compare the output from "id -G" with the union of getgroups() & getegid(). |
|||
| msg126125 - (view) | Author: Antoine Pitrou (pitrou) * ![]() |
Date: 2011-01-12 18:58 | |
Thanks for the patch! Committed in r87958 (3.2), r87959 (3.1) and r87961 (2.7). |
|||
| msg126775 - (view) | Author: Jesús Cea Avión (jcea) * ![]() |
Date: 2011-01-21 19:33 | |
Antoine, can you confirm that the problem is solved, and mark this issue as closed/fixed?. Thanks. |
|||
| msg126777 - (view) | Author: Jesús Cea Avión (jcea) * ![]() |
Date: 2011-01-21 19:38 | |
Sorry, Firefox insists in cache-ing the tracker, with bad results. I beg your pardon. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:57:10 | admin | set | github: 55031 |
| 2011-01-21 19:38:07 | jcea | set | status: open -> closed nosy:
+ rosslagerwall resolution: fixed |
| 2011-01-21 19:33:03 | jcea | set | status: closed -> open nosy:
- rosslagerwall resolution: fixed -> (no value) |
| 2011-01-12 18:58:12 | pitrou | set | status: open -> closed nosy: jcea, ronaldoussoren, pitrou, laca, rosslagerwall messages: + msg126125 resolution: fixed |
| 2011-01-11 06:52:49 | rosslagerwall | set | files:
+ 10822.patch messages:
+ msg125984 |
| 2011-01-10 19:58:40 | rosslagerwall | set | nosy:
+ rosslagerwall |
| 2011-01-04 11:08:34 | pitrou | create | |
