Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/django/django
/ garbage_collect
Function
garbage_collect
django/test/utils.py:1017–1021 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1015
1016
1017
def
garbage_collect():
1018
gc.collect()
1019
if
PYPY:
1020
# Collecting weakreferences can take two collections on PyPy.
1021
gc.collect()
Callers
9
test_garbage_collected_receiver
Method · 0.90
test_garbage_collected_sender
Method · 0.90
test_cached_garbaged_collected
Method · 0.90
test_multiple_registration
Method · 0.90
test_disconnection
Method · 0.90
test_closed_server_side_cursor
Method · 0.90
setup_gc_debug
Method · 0.90
assert_no_memory_leaks
Method · 0.90
test_one_to_one_field_cycle_collection
Method · 0.90
Calls
1
collect
Method · 0.45
Tested by
9
test_garbage_collected_receiver
Method · 0.72
test_garbage_collected_sender
Method · 0.72
test_cached_garbaged_collected
Method · 0.72
test_multiple_registration
Method · 0.72
test_disconnection
Method · 0.72
test_closed_server_side_cursor
Method · 0.72
setup_gc_debug
Method · 0.72
assert_no_memory_leaks
Method · 0.72
test_one_to_one_field_cycle_collection
Method · 0.72