MCPcopy Index your code
hub / github.com/python/cpython / setUp

Method setUp

Lib/test/test_logging.py:2242–2245  ·  view source on GitHub ↗

Create a dict to remember potentially destroyed objects.

(self)

Source from the content-addressed store, hash-verified

2240 """Test memory persistence of logger objects."""
2241
2242 def setUp(self):
2243 """Create a dict to remember potentially destroyed objects."""
2244 BaseTest.setUp(self)
2245 self._survivors = {}
2246
2247 def _watch_for_survival(self, *args):
2248 """Watch the given objects for survival, by creating weakrefs to

Callers

nothing calls this directly

Calls 1

setUpMethod · 0.45

Tested by

no test coverage detected