Stop allowing pre-0.7 SQLAlchemy
some recent version broke tests, let's just skip this check
This commit is contained in:
parent
61d504afb8
commit
e4b2cd638a
|
@ -145,12 +145,6 @@ def register(session, initial_state=datamanager.STATUS_ACTIVE,
|
||||||
event.listen(session, "before_commit", ext.before_commit)
|
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(Session)
|
||||||
register(TempmonSession)
|
register(TempmonSession)
|
||||||
register(TrainwreckSession)
|
register(TrainwreckSession)
|
||||||
else:
|
|
||||||
Session.configure(extension=ZopeTransactionExtension())
|
|
||||||
TempmonSession.configure(extension=ZopeTransactionExtension())
|
|
||||||
TrainwreckSession.configure(extension=ZopeTransactionExtension())
|
|
||||||
|
|
Loading…
Reference in a new issue