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

Function async_teardown

test/asynchronous/__init__.py:1234–1243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1232
1233
1234async def async_teardown():
1235 global_knobs.disable()
1236 garbage = []
1237 for g in gc.garbage:
1238 garbage.append(f"GARBAGE: {g!r}")
1239 garbage.append(f" gc.get_referents: {gc.get_referents(g)!r}")
1240 garbage.append(f" gc.get_referrers: {gc.get_referrers(g)!r}")
1241 if garbage:
1242 raise AssertionError("\n".join(garbage))
1243 print_running_clients()
1244
1245
1246@asynccontextmanager

Callers 1

test_setup_and_teardownFunction · 0.90

Calls 3

print_running_clientsFunction · 0.70
disableMethod · 0.45
joinMethod · 0.45

Tested by 1

test_setup_and_teardownFunction · 0.72