Fix patch of disable_gc

This commit is contained in:
ShaharNaveh
2025-07-25 16:58:25 +02:00
parent 73f5ceb79b
commit 0e3ff8ae5f

View File

@@ -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()