]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-30776: reduce regrtest -R false positives (#2422) 2442/head
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 27 Jun 2017 00:02:04 +0000 (02:02 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 27 Jun 2017 14:13:58 +0000 (16:13 +0200)
commite0f8b43a46850aa5e5992465cab684496f102fe5
treea94999f74e1593ea276c26eaeaae49f8181318ee
parent1f33857a3677de84bdc6d80c39f577eb081ed85d
bpo-30776: reduce regrtest -R false positives (#2422)

* 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 48b5c422ffb03affb00c184b9a99e5537be92732)
Lib/test/regrtest.py
Lib/test/test_regrtest.py