MCPcopy
hub / github.com/django/django / assert_no_memory_leaks

Method assert_no_memory_leaks

tests/select_related/tests.py:71–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 gc.set_debug(gc.DEBUG_SAVEALL)
70
71 def assert_no_memory_leaks(self):
72 garbage_collect()
73 self.assertEqual(gc.garbage, [])
74
75 def test_access_fks_without_select_related(self):
76 """

Callers 1

Calls 1

garbage_collectFunction · 0.90

Tested by

no test coverage detected