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 iritkatriel
Recipients Mark.Shannon, chris.jerdonek, corona10, iritkatriel, lukasz.langa, miss-islington, pablogsal, vstinner
Date 2021-08-17.10:50:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629197419.49.0.0746883260371.issue44895@roundup.psfhosted.org>
In-reply-to
Content
However, if I replace the assignment with a gc.collect() call, it still leaks:

def test_no_hang_on_context_chain_cycle2():
    while gc.collect():
        pass
    class A(Exception):
        pass
    class B(Exception):
        pass
    ...


I also changed gc_collect in Lib/test/support/__init__.py (which is called by the refleak check) to loop until gc.collect() returns 0 (currently it calls gc.collect() 3 times).  Still leaks.
History
Date User Action Args
2021-08-17 10:50:19iritkatrielsetrecipients: + iritkatriel, vstinner, chris.jerdonek, lukasz.langa, Mark.Shannon, corona10, pablogsal, miss-islington
2021-08-17 10:50:19iritkatrielsetmessageid: <1629197419.49.0.0746883260371.issue44895@roundup.psfhosted.org>
2021-08-17 10:50:19iritkatriellinkissue44895 messages
2021-08-17 10:50:19iritkatrielcreate