[Python-bugs-list] [ python-Bugs-724771 ] test_grp failing
SourceForge.net
noreply@sourceforge.net
Fri, 25 Apr 2003 07:07:22 -0700
Bugs item #724771, was opened at 2003-04-21 00:13
Message generated for change (Comment added) made by jackjansen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=724771&group_id=5470
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Jack Jansen (jackjansen)
Assigned to: Jack Jansen (jackjansen)
Summary: test_grp failing
Initial Comment:
Adding this just so it doesn't fall by the roadside (it's been discussed
on python-dev): test_grp is failing on MacOSX, probably because
there are multiple groups with the same numeric id (didn't
investigate, though).
----------------------------------------------------------------------
>Comment By: Jack Jansen (jackjansen)
Date: 2003-04-25 16:07
Message:
Logged In: YES
user_id=45365
The problem is fixed. For reasons unknown the fix isn't needed for pwd:
getpwuid() returns a * password, just like getpwall().
----------------------------------------------------------------------
Comment By: Walter Dörwald (doerwalter)
Date: 2003-04-23 21:55
Message:
Logged In: YES
user_id=89016
I checked in test_grp.py 1.15, which will hopefully fix the
problem: Mac OS X returns "*" as the password in
grp.getgrall() and "" in grp.getgrgid(). Does test_grp work
now? Should the same fix be done for test_pwd?
----------------------------------------------------------------------
Comment By: Jack Jansen (jackjansen)
Date: 2003-04-23 00:16
Message:
Logged In: YES
user_id=45365
It stil fails, sigh.
I've added the output, maybe that tells you more?
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2003-04-22 16:17
Message:
Logged In: YES
user_id=33168
I believe this problem was fixed on all the snake-farm
machines after Walter's last checkins. Thanks Walter.
----------------------------------------------------------------------
Comment By: Walter Dörwald (doerwalter)
Date: 2003-04-22 16:14
Message:
Logged In: YES
user_id=89016
Could you try the attached patch and post the output?
----------------------------------------------------------------------
Comment By: Jack Jansen (jackjansen)
Date: 2003-04-22 15:28
Message:
Logged In: YES
user_id=45365
Still fails:
File "/Users/jack/src/python/Lib/test/test_grp.py", line 37, in test_values
self.assert_(grp.getgrgid(e.gr_gid) in entriesbygid[e.gr_gid])
File "/Users/jack/src/python/Lib/unittest.py", line 268, in failUnless
if not expr: raise self.failureException, msg
----------------------------------------------------------------------
Comment By: Walter Dörwald (doerwalter)
Date: 2003-04-22 13:09
Message:
Logged In: YES
user_id=89016
According to
http://www.lysator.liu.se/xenofarm/python/files/579_3/python-testlog.txt
the problem is not duplicate ids, but duplicate names. I've
changed
test_pwd and test_grp, so that they handle names in the same
way as ids. (test_pwd.py 1.15, test_grp.py 1.14). Does this
fix the problem?
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2003-04-21 19:42
Message:
Logged In: YES
user_id=33168
This is failling on several other architectures in the snake
farm: http://www.lysator.liu.se/xenofarm/python/latest.html
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=724771&group_id=5470