Commit 782026da authored by Jason Madden's avatar Jason Madden

The exact size can actually be known when testing shrinking to a byte size of 0.

parent 39b9725f
......@@ -1028,9 +1028,7 @@ class PickleCacheTests(unittest.TestCase):
self.assertTrue(cache.total_estimated_size > 1)
# A gc shrinks the bytes
cache.incrgc()
self.assertTrue(cache.total_estimated_size <= 1)
# sanity check
self.assertTrue(cache.total_estimated_size >= 0)
self.assertEqual(cache.total_estimated_size, 0)
# It also shrank the measured size of the cache;
# this would fail under PyPy if _SWEEP_NEEDS_GC was False
......
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