- attached test_session_close.py
assertionpool regression
Issue #2097
resolved
Seems that session.close() no longer closes (returns to the pool) the active connection:
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.pool import AssertionPool
e = create_engine('sqlite:///', poolclass=AssertionPool)
Session = sessionmaker(bind=e)
session = Session()
session.execute('select 1')
session.close()
session = Session()
session.execute('select 1') # fails on default tip, not on rel_0_6
Comments (8)
-
Account Deleted -
Account Deleted Unit test exercising this, made against default tip
-
Account Deleted Unit test exercising this, made against rel_0_6 tip
-
Account Deleted Oh, or possibly AssertionPool just broke?
-
repo owner - changed milestone to 0.7.0
shrugs...should be something simple
-
repo owner - changed title to assertionpool regression
-
repo owner - changed status to resolved
-
repo owner - removed milestone
Removing milestone: 0.7.0 (automated comment)
- Log in to comment
single small script showing the problem