Message393668
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 |
|
Date |
User |
Action |
Args |
2021-05-14 15:35:07 | erlendaasland | set | recipients:
+ erlendaasland, vstinner, corona10, pablogsal, shihai1991 |
2021-05-14 15:35:07 | erlendaasland | set | messageid: <1621006507.74.0.536474834506.issue42972@roundup.psfhosted.org> |
2021-05-14 15:35:07 | erlendaasland | link | issue42972 messages |
2021-05-14 15:35:07 | erlendaasland | create | |
|