From e4b2cd638a1fee64d6131cf14c1432fb600c4ecd Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 19 Jul 2017 01:44:42 -0500 Subject: [PATCH] Stop allowing pre-0.7 SQLAlchemy some recent version broke tests, let's just skip this check --- tailbone/db.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tailbone/db.py b/tailbone/db.py index 44388e50..30f1da93 100644 --- a/tailbone/db.py +++ b/tailbone/db.py @@ -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)