cpython/Lib/test/libregrtest
Victor Stinner 86f0354fcb
[3.7] bpo-36560: regrtest: don't collect the GC twice (GH-12747) (GH-12749)
* bpo-36560: Fix reference leak hunting in regrtest (GH-12744)

Fix reference leak hunting in regrtest: compute also deltas (of
reference count, allocated memory blocks, file descriptor count)
during warmup, to ensure that everything is initialized before
starting to hunt reference leaks.

Other changes:

* Replace gc.collect() with support.gc_collect()
* Move calls to read memory statistics from dash_R_cleanup() to
  dash_R()
* Pass regrtest 'ns' to dash_R()
* dash_R() is now more quiet with --quiet option (don't display
  progress).
* Precompute the full range for "for it in range(repcount):" to
  ensure that the iteration doesn't allocate anything new.
* dash_R() now is responsible to call warm_caches().

(cherry picked from commit 5aaac94eeb)

* bpo-36560: regrtest: don't collect the GC twice (GH-12747)

dash_R() function of libregrtest doesn't call support.gc_collect()
directly anymore: it's already called by dash_R_cleanup().

Call dash_R_cleanup() before starting the loop.

(cherry picked from commit bb4447897a)
2019-04-09 18:55:50 +02:00
..
__init__.py bpo-30822: Exclude tzdata from regrtest --all (#2775) 2017-07-20 15:46:32 +02:00
cmdline.py Fix typo in test module usage message (GH-11374) 2018-12-30 21:59:08 -08:00
main.py bpo-35683: Improve Azure Pipelines steps (GH-11493) 2019-01-22 12:31:30 -08:00
refleak.py [3.7] bpo-36560: regrtest: don't collect the GC twice (GH-12747) (GH-12749) 2019-04-09 18:55:50 +02:00
runtest.py [3.7] bpo-36560: regrtest: don't collect the GC twice (GH-12747) (GH-12749) 2019-04-09 18:55:50 +02:00
runtest_mp.py [3.7] bpo-34279: Synchronize regrtest with master (GH-10800) 2018-11-29 21:14:59 +01:00
save_env.py bpo-31370: Remove support for threads-less builds (#3385) 2017-09-07 18:56:24 +02:00
setup.py [3.7] bpo-36560: regrtest: don't collect the GC twice (GH-12747) (GH-12749) 2019-04-09 18:55:50 +02:00
utils.py bpo-33873: Backport regrtest from master to 3.7 (GH-7935) 2018-06-26 23:47:35 +02:00