Skip to content

Commit

Permalink
Merge pull request #25 from drnextgis/transaction
Browse files Browse the repository at this point in the history
Support transaction>=1.6.0
  • Loading branch information
Michael Howitz committed Jan 26, 2018
2 parents 348fd5e + 58ec8b0 commit 378ac59
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Changes

- Add support for Python 3.4 up to 3.6.

- *Attention:* This versions currently does not support ``transaction >= 1.5``. (See https://github.com/zopefoundation/zope.sqlalchemy/issues/20)
- Drop support for transaction < 1.6.0.


0.7.7 (2016-06-23)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
install_requires=[
'setuptools',
'SQLAlchemy>=0.5.1',
'transaction < 1.5',
'transaction>=1.6.0',
'zope.interface>=3.6.0',
],
extras_require={'test': tests_require},
Expand Down
10 changes: 0 additions & 10 deletions src/zope/sqlalchemy/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,6 @@ def testTransactionJoining(self):
self.assertTrue(
[r for r in t._resources if isinstance(r, tx.SessionDataManager)],
"Not joined transaction")
transaction.abort()
conn = Session().connection()
self.assertTrue(
[r for r in t._resources if isinstance(r, tx.SessionDataManager)],
"Not joined transaction")

def testTransactionJoiningUsingRegister(self):
transaction.abort() # clean slate
Expand All @@ -355,11 +350,6 @@ def testTransactionJoiningUsingRegister(self):
self.assertTrue(
[r for r in t._resources if isinstance(r, tx.SessionDataManager)],
"Not joined transaction")
transaction.abort()
conn = EventSession().connection()
self.assertTrue(
[r for r in t._resources if isinstance(r, tx.SessionDataManager)],
"Not joined transaction")

def testSavepoint(self):
use_savepoint = not engine.url.drivername in tx.NO_SAVEPOINT_SUPPORT
Expand Down

0 comments on commit 378ac59

Please sign in to comment.