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

Method test_collect_generation

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

Source from the content-addressed store, hash-verified

1341 self.assertIn("duration", info)
1342
1343 def test_collect_generation(self):
1344 self.preclean()
1345 gc.collect(2)
1346 for v in self.visit:
1347 info = v[2]
1348 self.assertEqual(info["generation"], 2)
1349
1350 @cpython_only
1351 def test_collect_garbage(self):

Callers

nothing calls this directly

Calls 3

precleanMethod · 0.95
collectMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected