(self)
| 919 | gc.collect() |
| 920 | |
| 921 | def test_get_objects_arguments(self): |
| 922 | gc.collect() |
| 923 | self.assertEqual(len(gc.get_objects()), |
| 924 | len(gc.get_objects(generation=None))) |
| 925 | |
| 926 | self.assertRaises(ValueError, gc.get_objects, 1000) |
| 927 | self.assertRaises(ValueError, gc.get_objects, -1000) |
| 928 | self.assertRaises(TypeError, gc.get_objects, "1") |
| 929 | self.assertRaises(TypeError, gc.get_objects, 1.234) |
| 930 | |
| 931 | def test_resurrection_only_happens_once_per_object(self): |
| 932 | class A: # simple self-loop |
nothing calls this directly
no test coverage detected