skip nis entries, if not filtered out by getpwall itself
diff --git a/Lib/test/test_pwd.py b/Lib/test/test_pwd.py
index bb07c2b..69d88dd 100644
--- a/Lib/test/test_pwd.py
+++ b/Lib/test/test_pwd.py
@@ -38,6 +38,8 @@
         # check whether the entry returned by getpwuid()
         # for each uid is among those from getpwall() for this uid
         for e in entries:
+            if e[0] == '+':
+                continue # skip NIS entries
             self.assert_(pwd.getpwnam(e.pw_name) in entriesbyname[e.pw_name])
             self.assert_(pwd.getpwuid(e.pw_uid) in entriesbyuid[e.pw_uid])