This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author erlendaasland
Recipients corona10, erlendaasland, pablogsal, shihai1991, vstinner
Date 2021-05-14.15:35:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621006507.74.0.536474834506.issue42972@roundup.psfhosted.org>
In-reply-to
Content
Is there a deterministic way to test these changes? Will something a la this be sufficient:

import gc
import sys

gc.collect()
before = sys.gettotalrefcount()

import somemod
del sys.modules['somemod']
del somemod

gc.collect()
after = sys.gettotalrefcount()

assert after == before
History
Date User Action Args
2021-05-14 15:35:07erlendaaslandsetrecipients: + erlendaasland, vstinner, corona10, pablogsal, shihai1991
2021-05-14 15:35:07erlendaaslandsetmessageid: <1621006507.74.0.536474834506.issue42972@roundup.psfhosted.org>
2021-05-14 15:35:07erlendaaslandlinkissue42972 messages
2021-05-14 15:35:07erlendaaslandcreate