MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_unlimited

Method test_unlimited

test/engine/test_pool.py:1477–1484  ·  view source on GitHub ↗
(self, max_overflow)

Source from the content-addressed store, hash-verified

1475
1476 @testing.combinations(42, 0, -5, 1)
1477 def test_unlimited(self, max_overflow):
1478 p = self._queuepool_fixture(pool_size=0, max_overflow=max_overflow)
1479 eq_(p.overflow(), 0)
1480 c1 = p.connect()
1481 c2 = p.connect()
1482 eq_(p.overflow(), 0)
1483 c1.close()
1484 c2.close()
1485
1486 def test_overflow_no_gc(self):
1487 p = self._queuepool_fixture(pool_size=2, max_overflow=2)

Callers

nothing calls this directly

Calls 5

eq_Function · 0.90
_queuepool_fixtureMethod · 0.80
overflowMethod · 0.80
connectMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected