diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index c6bd4d5d5..cde29a562 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -501,6 +501,8 @@ def requires_lzma(reason='requires lzma'): import lzma except ImportError: lzma = None + # XXX: RUSTPYTHON; xz is not supported yet + lzma = None return unittest.skipUnless(lzma, reason) def has_no_debug_ranges(): @@ -808,6 +810,8 @@ def gc_collect(): longer than expected. This function tries its best to force all garbage objects to disappear. """ + return # TODO: RUSTPYTHON + import gc gc.collect() gc.collect() @@ -815,6 +819,9 @@ def gc_collect(): @contextlib.contextmanager def disable_gc(): + yield # TODO: RUSTPYTHON + return # TODO: RUSTPYTHON + import gc have_gc = gc.isenabled() gc.disable() @@ -826,6 +833,9 @@ def disable_gc(): @contextlib.contextmanager def gc_threshold(*args): + yield # TODO: RUSTPYTHON + return # TODO: RUSTPYTHON + import gc old_threshold = gc.get_threshold() gc.set_threshold(*args) @@ -1888,6 +1898,8 @@ def _check_tracemalloc(): def check_free_after_iterating(test, iter, cls, args=()): + return # TODO: RUSTPYTHON; GC is not supported yet + done = False def wrapper(): class A(cls):