Kaydet (Commit) 80768f86 authored tarafından Fredrik Lundh's avatar Fredrik Lundh

skip nis entries, if not filtered out by getpwall itself

üst 2a60d9ac
......@@ -38,6 +38,8 @@ class PwdTest(unittest.TestCase):
# 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])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment