mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Fix patch of disable_gc
This commit is contained in:
8
Lib/test/support/__init__.py
vendored
8
Lib/test/support/__init__.py
vendored
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user