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

Method test_tuple

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

Source from the content-addressed store, hash-verified

106 self.assertEqual(gc.collect(), 1)
107
108 def test_tuple(self):
109 # since tuples are immutable we close the loop with a list
110 l = []
111 t = (l,)
112 l.append(t)
113 gc.collect()
114 del t
115 del l
116 self.assertEqual(gc.collect(), 2)
117
118 def test_class(self):
119 class A:

Callers

nothing calls this directly

Calls 3

collectMethod · 0.80
appendMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected