Commit cebeb5a
committed
bpo-36017: Improve test_grp.test_errors for (big) LDAP directories
There is no guarantee that the group database returned on unix system is
complete. It is typically cut short when LDAP directories are configured
for bigger network setups. This makes it tricky to find a nonexistent
group id by looking at the group database.
This changes the test to pick a nonexistent gid within gid 1-99 which
are typically static assigned and not managed by network directory
systems.
Also pick a group name that is extremely likely to not exist instead of
modifying the name of the first group in the database.
skip news1 parent 6ff79f6 commit cebeb5a
1 file changed
Lines changed: 17 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
96 | 106 | | |
97 | 107 | | |
98 | 108 | | |
| |||
0 commit comments