MCPcopy Index your code
hub / github.com/python/cpython / test_instance

Method test_instance

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

Source from the content-addressed store, hash-verified

131 self.assertNotEqual(gc.collect(), 0)
132
133 def test_instance(self):
134 class A:
135 pass
136 a = A()
137 a.a = a
138 gc.collect()
139 del a
140 self.assertNotEqual(gc.collect(), 0)
141
142 def test_newinstance(self):
143 class A(object):

Callers

nothing calls this directly

Calls 3

assertNotEqualMethod · 0.80
AClass · 0.70
collectMethod · 0.45

Tested by

no test coverage detected