]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44895: Temporarily add an extra gc.collect() call (GH-27746)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 13 Aug 2021 10:21:26 +0000 (03:21 -0700)
committerGitHub <noreply@github.com>
Fri, 13 Aug 2021 10:21:26 +0000 (03:21 -0700)
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.
(cherry picked from commit 7bf28cbb4bf37fa6bdfc2d3f8a3939066b3f8f22)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Lib/test/test_exceptions.py

index b520a52561480a2520a6d2658546bdefecd4c0c7..2e4ec9d33f689289eb01d84c398d31e118c57f4f 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