MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / checkout

Method checkout

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

Source from the content-addressed store, hash-verified

1146 timeouts = []
1147
1148 def checkout():
1149 barrier.wait()
1150 for x in range(1):
1151 now = time.time()
1152 try:
1153 c1 = p.connect()
1154 except tsa.exc.TimeoutError:
1155 timeouts.append(time.time() - now)
1156 continue
1157 time.sleep(4)
1158 c1.close()
1159
1160 barrier = threading.Barrier(10)
1161 threads = []

Calls 4

timeMethod · 0.45
connectMethod · 0.45
appendMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected