Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix patch of gc_threshold
  • Loading branch information
ShaharNaveh committed Jul 25, 2025
commit b829333f1d7e1bf6444063fab84a15c690d6a16e
8 changes: 6 additions & 2 deletions Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,8 +837,12 @@ def disable_gc():

@contextlib.contextmanager
def gc_threshold(*args):
yield # TODO: RUSTPYTHON
return # TODO: RUSTPYTHON
# TODO: RUSTPYTHON; GC is not supported yet
try:
yield
finally:
pass
return

import gc
old_threshold = gc.get_threshold()
Expand Down
Loading