Commit 7f34907a authored by Yusei Tahara's avatar Yusei Tahara

Call gc.collect() explicitly to banish the ghosts who are no longer in the ring.

parent 000501d7
......@@ -1103,6 +1103,7 @@ class PythonPickleCacheTests(PickleCacheTests):
self.assertEqual(cache.total_estimated_size, 64*100)
cache.incrgc()
gc.collect() # banish the ghosts who are no longer in the ring
self.assertEqual(cache.total_estimated_size, 64*6)
self.assertEqual(cache.cache_non_ghost_count, 6)
self.assertEqual(len(cache), 6)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment