On Tuesday, January 10, 2012 10:14:04 AM UTC-5, Simon King wrote: > > In other words: If we fix the initial state of the random generator > then why don't we fix the initial state of (say) the coercion caches > as well, in a way that would certainly *not* hide a memory leak?
Because it is almost always a bug for a test to depend on when the last gc was run, while it is a feature of the random number generator to return pseudo-random numbers. If your doctest is about what kind of objects are currently alive then it should do a manual gc.collect() first. -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
