[Python-checkins] [python/cpython] 48b5c4: bpo-30776: reduce regrtest -R false positives (#24...

GitHub noreply at github.com
Mon Jun 26 20:02:06 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: 48b5c422ffb03affb00c184b9a99e5537be92732
      https://github.com/python/cpython/commit/48b5c422ffb03affb00c184b9a99e5537be92732
  Author: Victor Stinner <victor.stinner at gmail.com>
  Date:   2017-06-27 (Tue, 27 Jun 2017)

  Changed paths:
    M Lib/test/libregrtest/refleak.py
    M Lib/test/test_regrtest.py

  Log Message:
  -----------
  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]




More information about the Python-checkins mailing list