Skip to content

Commit 7bf28cb

Browse files
authored
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.
1 parent 03648a2 commit 7bf28cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_exceptions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,9 @@ def cycle():
10141014

10151015
def test_no_hang_on_context_chain_cycle2(self):
10161016
# See issue 25782. Cycle at head of context chain.
1017+
while gc.collect():
1018+
# Remove this once issue 44895 is resolved
1019+
pass
10171020

10181021
class A(Exception):
10191022
pass

0 commit comments

Comments
 (0)