MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / whammy

Method whammy

test/engine/test_pool.py:1193–1202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1191 peaks = []
1192
1193 def whammy():
1194 for i in range(10):
1195 try:
1196 con = p.connect()
1197 time.sleep(0.005)
1198 peaks.append(p.overflow())
1199 con.close()
1200 del con
1201 except tsa.exc.TimeoutError:
1202 pass
1203
1204 threads = []
1205 for i in range(thread_count):

Callers

nothing calls this directly

Calls 4

overflowMethod · 0.80
connectMethod · 0.45
appendMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected