Stop allowing pre-0.7 SQLAlchemy

some recent version broke tests, let's just skip this check
This commit is contained in:
Lance Edgar 2017-07-19 01:44:42 -05:00
parent 61d504afb8
commit e4b2cd638a

View file

@ -145,12 +145,6 @@ def register(session, initial_state=datamanager.STATUS_ACTIVE,
event.listen(session, "before_commit", ext.before_commit)
# TODO: We can probably assume a new SA version since we use Continuum now.
if tuple(int(x) for x in sa.__version__.split('.')) >= (0, 7):
register(Session)
register(TempmonSession)
register(TrainwreckSession)
else:
Session.configure(extension=ZopeTransactionExtension())
TempmonSession.configure(extension=ZopeTransactionExtension())
TrainwreckSession.configure(extension=ZopeTransactionExtension())
register(Session)
register(TempmonSession)
register(TrainwreckSession)