MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / cleanup

Method cleanup

test/test_connection_monitoring.py:268–274  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

266 self.labels: dict = {}
267
268 def cleanup():
269 for t in self.targets.values():
270 t.stop()
271 for t in self.targets.values():
272 t.join(5)
273 for conn in self.labels.values():
274 conn.close_conn(None)
275
276 self.addCleanup(cleanup)
277

Callers

nothing calls this directly

Calls 4

valuesMethod · 0.80
stopMethod · 0.45
joinMethod · 0.45
close_connMethod · 0.45

Tested by

no test coverage detected