Message 393668 - Python tracker
Message393668
| 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: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 | |