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

Method test_dict

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

Source from the content-addressed store, hash-verified

99 self.assertEqual(gc.collect(), 1)
100
101 def test_dict(self):
102 d = {}
103 d[1] = d
104 gc.collect()
105 del d
106 self.assertEqual(gc.collect(), 1)
107
108 def test_tuple(self):
109 # since tuples are immutable we close the loop with a list

Callers

nothing calls this directly

Calls 2

collectMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected