Irit Katriel <iritkatr...@gmail.com> added the comment:
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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44895> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com