summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_grp.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_grp.py')
-rwxr-xr-xLib/test/test_grp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_grp.py b/Lib/test/test_grp.py
index f7d2191..2c3ab29 100755
--- a/Lib/test/test_grp.py
+++ b/Lib/test/test_grp.py
@@ -42,6 +42,8 @@ class GroupDatabaseTestCase(unittest.TestCase):
bynames = {}
bygids = {}
for (n, p, g, mem) in grp.getgrall():
+ if not n or n == '+':
+ continue # skip NIS entries etc.
bynames[n] = g
bygids[g] = n