[Python-bugs-list] [ python-Bugs-724771 ] test_grp failing

SourceForge.net noreply@sourceforge.net
Tue, 22 Apr 2003 07:14:24 -0700


Bugs item #724771, was opened at 2003-04-21 00:13
Message generated for change (Comment added) made by doerwalter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=724771&group_id=5470

Category: None
Group: None
Status: Open
Resolution: Accepted
Priority: 5
Submitted By: Jack Jansen (jackjansen)
Assigned to: Neal Norwitz (nnorwitz)
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: 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