MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_frame

Method test_frame

Lib/test/test_gc.py:337–342  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

335
336 @refcount_test
337 def test_frame(self):
338 def f():
339 frame = sys._getframe()
340 gc.collect()
341 f()
342 self.assertEqual(gc.collect(), 1)
343
344 def test_saveall(self):
345 # Verify that cyclic garbage like lists show up in gc.garbage if the

Callers

nothing calls this directly

Calls 3

collectMethod · 0.80
fFunction · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected