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 disable_gc
  • Loading branch information
ShaharNaveh committed Jul 25, 2025
commit 0e3ff8ae5f275f7d09224a05605e6d3f2da9bbca
8 changes: 6 additions & 2 deletions Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,8 +819,12 @@ def gc_collect():

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

import gc
have_gc = gc.isenabled()
Expand Down
Loading