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

Method preclean

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

Source from the content-addressed store, hash-verified

1289 gc.collect()
1290
1291 def preclean(self):
1292 # Remove all fluff from the system. Invoke this function
1293 # manually rather than through self.setUp() for maximum
1294 # safety.
1295 self.visit = []
1296 gc.collect()
1297 garbage, gc.garbage[:] = gc.garbage[:], []
1298 self.othergarbage.append(garbage)
1299 self.visit = []
1300
1301 def cb1(self, phase, info):
1302 self.visit.append((1, phase, dict(info)))

Callers 4

test_collectMethod · 0.95
test_collect_garbageMethod · 0.95
test_refcount_errorsMethod · 0.95

Calls 2

collectMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected