MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / print_running_topology

Function print_running_topology

test/helpers_shared.py:222–230  ·  view source on GitHub ↗
(topology)

Source from the content-addressed store, hash-verified

220
221
222def print_running_topology(topology):
223 running = [e for e in _get_executors(topology) if not e._stopped]
224 if running:
225 print(
226 "WARNING: found Topology with running threads:\n"
227 f" Threads: {running}\n"
228 f" Topology: {topology}\n"
229 f" Creation traceback:\n{topology._settings._stack}"
230 )
231
232
233def test_cases(suite):

Callers 2

print_running_clientsFunction · 0.90
print_running_clientsFunction · 0.90

Calls 1

_get_executorsFunction · 0.85

Tested by

no test coverage detected