Repository navigation
Commit 5110c9f
[3.15] gh-157628: regrtest: Only report a leak if all runs leak one FD (GH-157629) (GH-157753)
gh-157628: regrtest: Only report a leak if all runs leak one FD (GH-157629)
In regrtest, only consider that a test leaks if all test runs leak at
least one file descriptor. For example, ignore "[0, 1, -1] file
descriptors, sum=0" deltas, instead of reporting it as a leak.
Add a regression test.
(cherry picked from commit 0a4f255)
(cherry picked from commit bba171e)
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 2a76adb commit 5110c9f
3 files changed
Lines changed: 76 additions & 33 deletions
File tree
- Lib/test
- libregrtest
- Misc/NEWS.d/next/Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
190 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
191 | 199 | | |
192 | | - | |
| 200 | + | |
193 | 201 | | |
194 | | - | |
195 | | - | |
196 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
197 | 206 | | |
198 | | - | |
| 207 | + | |
199 | 208 | | |
200 | | - | |
201 | | - | |
202 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
203 | 212 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | 213 | | |
217 | 214 | | |
218 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1284 | 1284 | | |
1285 | 1285 | | |
1286 | 1286 | | |
1287 | | - | |
1288 | | - | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
1289 | 1290 | | |
| 1291 | + | |
1290 | 1292 | | |
1291 | 1293 | | |
1292 | 1294 | | |
1293 | 1295 | | |
1294 | 1296 | | |
1295 | 1297 | | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
1296 | 1309 | | |
1297 | | - | |
| 1310 | + | |
1298 | 1311 | | |
1299 | | - | |
| 1312 | + | |
1300 | 1313 | | |
1301 | | - | |
| 1314 | + | |
| 1315 | + | |
1302 | 1316 | | |
1303 | 1317 | | |
1304 | | - | |
1305 | | - | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
1306 | 1321 | | |
1307 | | - | |
1308 | | - | |
1309 | | - | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
1310 | 1328 | | |
1311 | 1329 | | |
1312 | 1330 | | |
| |||
1383 | 1401 | | |
1384 | 1402 | | |
1385 | 1403 | | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
1386 | 1429 | | |
1387 | 1430 | | |
1388 | 1431 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments