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 pitrou
Recipients greg.ath, neologix, pitrou, vstinner
Date 2011-07-02.11:50:17
SpamBayes Score 0.022896219
Marked as misclassified No
Message-id <1309607418.2.0.152896808487.issue12352@psf.upfronthosting.co.za>
In-reply-to
Content
+        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.
History
Date User Action Args
2011-07-02 11:50:18pitrousetrecipients: + pitrou, vstinner, neologix, greg.ath
2011-07-02 11:50:18pitrousetmessageid: <1309607418.2.0.152896808487.issue12352@psf.upfronthosting.co.za>
2011-07-02 11:50:17pitroulinkissue12352 messages
2011-07-02 11:50:17pitroucreate