From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Fri, 13 Aug 2021 09:41:35 +0000 (+0100) Subject: bpo-44895: Temporarily add an extra gc.collect() call (GH-27746) X-Git-Tag: v3.11.0a1~414 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7bf28cbb4bf37fa6bdfc2d3f8a3939066b3f8f22;p=thirdparty%2FPython%2Fcpython.git bpo-44895: Temporarily add an extra gc.collect() call (GH-27746) This is part of an investigation of a non-deterministic reference leak. While we're looking for the root cause, this is included temporarily so that CI doesn't fail on this particular issue. This enables it to find other regressions in the meantime, which would otherwise be shadowed by our known issue. --- diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index efeca6de822f..947d7132cc71 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -1014,6 +1014,9 @@ class ExceptionTests(unittest.TestCase): 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