mirror of https://github.com/python/cpython
I'm tired of these tests breaking at Google due to our large number of
users and groups in LDAP/NIS. So I'm limiting the extra-heavy part of the tests to passwd/group files with at most 1000 entries.
This commit is contained in:
parent
c226c31139
commit
66b4ab701b
|
@ -25,6 +25,9 @@ class GroupDatabaseTestCase(unittest.TestCase):
|
|||
for e in entries:
|
||||
self.check_value(e)
|
||||
|
||||
if len(entries) > 1000: # Huge group file (NIS?) -- skip the rest
|
||||
return
|
||||
|
||||
for e in entries:
|
||||
e2 = grp.getgrgid(e.gr_gid)
|
||||
self.check_value(e2)
|
||||
|
|
|
@ -35,6 +35,9 @@ class PwdTest(unittest.TestCase):
|
|||
entriesbyname.setdefault(e.pw_name, []).append(e)
|
||||
entriesbyuid.setdefault(e.pw_uid, []).append(e)
|
||||
|
||||
if len(entries) > 1000: # Huge passwd file (NIS?) -- skip the rest
|
||||
return
|
||||
|
||||
# check whether the entry returned by getpwuid()
|
||||
# for each uid is among those from getpwall() for this uid
|
||||
for e in entries:
|
||||
|
|
Loading…
Reference in New Issue