(self)
| 288 | |
| 289 | @unittest.expectedFailure # TODO: RUSTPYTHON |
| 290 | def test_cycle(self): |
| 291 | class myobj(): pass |
| 292 | o = myobj() |
| 293 | o.s = slice(o) |
| 294 | w = weakref.ref(o) |
| 295 | o = None |
| 296 | support.gc_collect() |
| 297 | self.assertIsNone(w()) |
| 298 | |
| 299 | if __name__ == "__main__": |
| 300 | unittest.main() |
nothing calls this directly
no test coverage detected