Skip to content

Commit 877c050

Browse files
committed
gc
1 parent be155bd commit 877c050

File tree

21 files changed

+2360
-123
lines changed

21 files changed

+2360
-123
lines changed

.cspell.dict/cpython.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ uncollectable
185185
Unhandle
186186
unparse
187187
unparser
188+
untracking
188189
VARKEYWORDS
189190
varkwarg
190191
venvlauncher
@@ -198,5 +199,6 @@ weakrefobject
198199
webpki
199200
withitem
200201
withs
202+
worklist
201203
xstat
202204
XXPRIME

.cspell.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"emscripten",
6767
"excs",
6868
"finalizer",
69+
"finalizers",
6970
"GetSet",
7071
"groupref",
7172
"internable",
@@ -120,12 +121,14 @@
120121
"sysmodule",
121122
"tracebacks",
122123
"typealiases",
124+
"uncollectable",
123125
"unhashable",
124126
"uninit",
125127
"unraisable",
126128
"unresizable",
127129
"varint",
128130
"wasi",
131+
"weaked",
129132
"zelf",
130133
// unix
131134
"posixshmem",

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ winresource = "0.1"
3333
rustpython-compiler = { workspace = true }
3434
rustpython-pylib = { workspace = true, optional = true }
3535
rustpython-stdlib = { workspace = true, optional = true, features = ["compiler"] }
36-
rustpython-vm = { workspace = true, features = ["compiler"] }
36+
rustpython-vm = { workspace = true, features = ["compiler", "gc"] }
3737
ruff_python_parser = { workspace = true }
3838

3939
cfg-if = { workspace = true }

Lib/test/support/__init__.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -919,13 +919,6 @@ def disable_gc():
919919

920920
@contextlib.contextmanager
921921
def gc_threshold(*args):
922-
# TODO: RUSTPYTHON; GC is not supported yet
923-
try:
924-
yield
925-
finally:
926-
pass
927-
return
928-
929922
import gc
930923
old_threshold = gc.get_threshold()
931924
gc.set_threshold(*args)

Lib/test/test_asyncio/test_ssl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1649,7 +1649,6 @@ async def test(ctx):
16491649
# SSLProtocol should be DECREF to 0
16501650
self.assertIsNone(ctx())
16511651

1652-
@unittest.expectedFailure # TODO: RUSTPYTHON; - gc.collect() doesn't release SSLContext properly
16531652
def test_shutdown_timeout_handler_leak(self):
16541653
loop = self.loop
16551654

0 commit comments

Comments
 (0)