Message139637
+ if gc.isenabled():
+ thresholds = gc.get_threshold()
+ self.addCleanup(gc.set_threshold, *thresholds)
+ else:
+ gc.enable()
+ self.addCleanup(gc.disable)
It seems you won't restore the thresholds if the GC wasn't enabled at first. |
|
Date |
User |
Action |
Args |
2011-07-02 11:50:18 | pitrou | set | recipients:
+ pitrou, vstinner, neologix, greg.ath |
2011-07-02 11:50:18 | pitrou | set | messageid: <1309607418.2.0.152896808487.issue12352@psf.upfronthosting.co.za> |
2011-07-02 11:50:17 | pitrou | link | issue12352 messages |
2011-07-02 11:50:17 | pitrou | create | |
|