[issue775964] fix test_grp failing when NIS entries present
report at bugs.python.org
Tue Oct 26 01:45:58 CEST 2010
Bobby Impollonia <bobbyi at 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.
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 <report at bugs.python.org>
More information about the Python-bugs-list