]> granicus.if.org Git - python/commit
[3.8] bpo-38379: don't claim objects are collected when they aren't (GH-16658)...
authorPablo Galindo <Pablogsal@gmail.com>
Wed, 9 Oct 2019 21:25:06 +0000 (22:25 +0100)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 9 Oct 2019 21:25:06 +0000 (14:25 -0700)
commit0bd9fac7a866ec886ae8f93f9c24dcda6d436929
tree63be35574a9e5e8cbd9d1655d655bddc8b283a8e
parent359a1975cbca488ccd5ea13bd7268d7e88664078
[3.8] bpo-38379:  don't claim objects are collected when they aren't  (GH-16658) (GH-16683)

* [bpo-38379](https://bugs.python.org/issue38379):  when a finalizer resurrects an object,
nothing is actually collected in this run of gc.
Change the stats to relect that truth.
(cherry picked from commit ecbf35f9335b0420cb8adfda6f299d6747a16515)

Co-authored-by: Tim Peters <tim.peters@gmail.com>
https://bugs.python.org/issue38379

Automerge-Triggered-By: @pablogsal
Lib/test/test_gc.py
Misc/NEWS.d/next/Core and Builtins/2019-10-09-16-50-52.bpo-38379.oz5qZx.rst [new file with mode: 0644]
Modules/gcmodule.c