Bobby Impollonia <bob...@gmail.com> added the comment:

I am encountering this issue with py3k on a Debian machine. test_grp 
consistently fails due to a line with a plus sign in /etc/group

I believe that the previous patch attached to this bug is not correct due to 
the issues others have raised: It only handles lines with a plus sign as the 
name (not any name starting with '+' or '-') and it breaks out of the loop when 
it finds one, silently discarding any remaining lines.

I've attached a new patch which preserves the functionality of getgrall but 
updates its docstring to document that any group names starting with '+' or '-' 
represent NIS-related entries. The patch fixes the test itself so that it skips 
over NIS-related entries rather than attempting to look them up with 
grp.getgrnam.

With this patch applied (to the py3k branch HEAD), all regression tests pass on 
my machine.

----------
nosy: +bobbyi
title: fix test_grp failing on RedHat 6.2 -> fix test_grp failing when NIS 
entries present
versions: +Python 3.2, Python 3.3
Added file: http://bugs.python.org/file19364/test_grp.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue775964>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to