[issue44895] refleak test failure in test_exceptions
Irit Katriel
report at bugs.python.org
Thu Aug 12 10:52:17 EDT 2021
Irit Katriel <iritkatriel at gmail.com> added the comment:
The problem disappears if I add a gc.collect() loop at the beginning of the new test:
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 79798ecf05..e0aeac9d10 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -1014,6 +1014,7 @@ def cycle():
def test_no_hang_on_context_chain_cycle2(self):
# See issue 25782. Cycle at head of context chain.
+ while gc.collect(): pass
class A(Exception):
pass
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44895>
_______________________________________
More information about the Python-bugs-list
mailing list