[Python-checkins] bpo-44895: Temporarily add an extra gc.collect() call (GH-27746)

miss-islington webhook-mailer at python.org
Fri Aug 13 06:21:30 EDT 2021


https://github.com/python/cpython/commit/ebc59262349d6901b825ed9101d604e826757262
commit: ebc59262349d6901b825ed9101d604e826757262
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-08-13T03:21:26-07:00
summary:

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.
(cherry picked from commit 7bf28cbb4bf37fa6bdfc2d3f8a3939066b3f8f22)

Co-authored-by: Irit Katriel <1055913+iritkatriel at users.noreply.github.com>

files:
M Lib/test/test_exceptions.py

diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index b520a52561480..2e4ec9d33f689 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



More information about the Python-checkins mailing list