Message336900
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. |
|
Date |
User |
Action |
Args |
2019-03-01 07:57:27 | pablogsal | set | recipients:
+ pablogsal, methane, xtreak |
2019-03-01 07:57:27 | pablogsal | set | messageid: <1551427047.28.0.74829412011.issue36155@roundup.psfhosted.org> |
2019-03-01 07:57:27 | pablogsal | link | issue36155 messages |
2019-03-01 07:57:27 | pablogsal | create | |
|