Watch the given objects for survival, by creating weakrefs to them.
(self, *args)
| 2245 | self._survivors = {} |
| 2246 | |
| 2247 | def _watch_for_survival(self, *args): |
| 2248 | """Watch the given objects for survival, by creating weakrefs to |
| 2249 | them.""" |
| 2250 | for obj in args: |
| 2251 | key = id(obj), repr(obj) |
| 2252 | self._survivors[key] = weakref.ref(obj) |
| 2253 | |
| 2254 | def _assertTruesurvival(self): |
| 2255 | """Assert that all objects watched for survival have survived.""" |
no test coverage detected