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 pablogsal
Recipients methane, pablogsal, xtreak
Date 2019-03-01.07:57:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1551427047.28.0.74829412011.issue36155@roundup.psfhosted.org>
In-reply-to
Content
It seems that some collection from some other test is happening between the three calls to get_objects:

self.assertIn(l, gc.get_objects(generation=0))
self.assertNotIn(l, gc.get_objects(generation=1))
self.assertNotIn(l, gc.get_objects(generation=2))

The easiest solution is deactivating the gc at the beginning of the test and reactivating it afterwards, as the test is relying on manual collection. In this way, external collections cannot affect the test. I will prepare a PR.
History
Date User Action Args
2019-03-01 07:57:27pablogsalsetrecipients: + pablogsal, methane, xtreak
2019-03-01 07:57:27pablogsalsetmessageid: <1551427047.28.0.74829412011.issue36155@roundup.psfhosted.org>
2019-03-01 07:57:27pablogsallinkissue36155 messages
2019-03-01 07:57:27pablogsalcreate