◐ Shell
clean mode source ↗

Message 133231 - Python tracker

> I thought unittest was just handed a bunch of TestCase instances and couldn't do much about insuring they were garbage collected.

True.  But unittest could ensure that it doesn't keep a reference to each TestCase instance after it finishes running it.  Then, if no one else has a reference either, it can be garbage collected.