assertionpool regression

Issue #2097 resolved
Former user created an issue

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)

  1. Log in to comment