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