This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients pablogsal, serhiy.storchaka, vstinner
Date 2018-06-15.22:51:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1529103104.69.0.56676864532.issue33873@psf.upfronthosting.co.za>
In-reply-to
Content
> test_list leaked [3] memory blocks, sum=3

Memory block leaks are very different from reference leaks. Memory block are low level allocations. Python has *many* internal caches: tuple uses an internal "free list" for example. The first runs of the tests (2 runs when using -R 2:3) is used to warmup these caches.

Maybe regrtest -R should raise an error, or at least emit a big warning when using -R with less than 3 warmup runs.

By the way, regrtest has a very old bug: -R 3:3 runs the test 7 times, not 6 times. See runtest_inner() in Lib/test/libregrtest/runtest.py:

            test_runner()
            if ns.huntrleaks:
                refleak = dash_R(the_module, test, test_runner, ns.huntrleaks)

The code should be:

            if ns.huntrleaks:
                refleak = dash_R(the_module, test, test_runner, ns.huntrleaks)
            else:
                test_runner()

Do you want to write a PR for that? I should make our Refleaks buildbots 1/7 faster ;-)
History
Date User Action Args
2018-06-15 22:51:44vstinnersetrecipients: + vstinner, serhiy.storchaka, pablogsal
2018-06-15 22:51:44vstinnersetmessageid: <1529103104.69.0.56676864532.issue33873@psf.upfronthosting.co.za>
2018-06-15 22:51:44vstinnerlinkissue33873 messages
2018-06-15 22:51:44vstinnercreate