]> granicus.if.org Git - python/commit
bpo-30776: reduce regrtest -R false positives (#2422)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 27 Jun 2017 00:02:04 +0000 (02:02 +0200)
committerGitHub <noreply@github.com>
Tue, 27 Jun 2017 00:02:04 +0000 (02:02 +0200)
commit48b5c422ffb03affb00c184b9a99e5537be92732
treef1d8701a3dc6cc371c247a31ba72aed56dd5af1a
parentbac7d3363b099d0cdef3e541f8581859edfddc85
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]
Lib/test/libregrtest/refleak.py
Lib/test/test_regrtest.py