(self)
| 366 | self.assertEqual(id(obj), id_L) |
| 367 | |
| 368 | def test_del(self): |
| 369 | # __del__ methods can trigger collection, make this to happen |
| 370 | thresholds = gc.get_threshold() |
| 371 | gc.enable() |
| 372 | gc.set_threshold(1) |
| 373 | |
| 374 | class A: |
| 375 | def __del__(self): |
| 376 | dir(self) |
| 377 | a = A() |
| 378 | del a |
| 379 | |
| 380 | gc.disable() |
| 381 | gc.set_threshold(*thresholds) |
| 382 | |
| 383 | def test_del_newclass(self): |
| 384 | # __del__ methods can trigger collection, make this to happen |
nothing calls this directly
no test coverage detected