From a6a8b1c3e72023b8e811d683feaaa03eacd0929b Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Thu, 12 Aug 2021 17:58:52 +0100 Subject: [PATCH] bpo-44895: temporarily add a gc call to unbreak the built while we investigate the refleak --- Lib/test/test_exceptions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index efeca6de822fbee..947d7132cc71892 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -1014,6 +1014,9 @@ def cycle(): def test_no_hang_on_context_chain_cycle2(self): # See issue 25782. Cycle at head of context chain. + while gc.collect(): + # Remove this once issue 44895 is resolved + pass class A(Exception): pass