diff options
author | Guido van Rossum <guido@python.org> | 2008-01-23 01:18:27 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2008-01-23 01:18:27 +0000 |
commit | 66b4ab701be501a49424343cf02b103f4e5e9769 (patch) | |
tree | 31724357c252ab2f6ac099677a2d95f05086aa8a /Lib/test/test_grp.py | |
parent | c226c311392abbda437300eaa9841d9e839854c0 (diff) | |
download | cpython-git-66b4ab701be501a49424343cf02b103f4e5e9769.tar.gz |
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.
Diffstat (limited to 'Lib/test/test_grp.py')
-rwxr-xr-x | Lib/test/test_grp.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_grp.py b/Lib/test/test_grp.py index 08958ba071..a8dcb631f4 100755 --- a/Lib/test/test_grp.py +++ b/Lib/test/test_grp.py @@ -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) |