[3.5] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master by vstinner · Pull Request #2442 · python/cpython (original) (raw)
- Change the regrtest --huntrleaks checker to decide if a test file leaks or not. Require that each run leaks at least 1 reference.
- Warmup runs are now completely ignored: ignored in the checker test and not used anymore to compute the sum.
- Add an unit test for a reference leak.
Example of reference differences previously considered a failure (leak) and now considered as success (success, no leak):
[3, 0, 0]
[0, 1, 0]
[8, -8, 1]
(cherry picked from commit 48b5c42)