]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44895: Temporarily add an extra gc.collect() call (GH-27746)
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>
Fri, 13 Aug 2021 09:41:35 +0000 (10:41 +0100)
committerGitHub <noreply@github.com>
Fri, 13 Aug 2021 09:41:35 +0000 (11:41 +0200)
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.

Lib/test/test_exceptions.py

index efeca6de822fbeedbdf85409859d13fd7f07a14d..947d7132cc7189296367d01273bb34f3f52b90fb 100644 (file)
@@ -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