diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-03-26 21:52:31 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-03-26 21:52:31 -0400 |
commit | d0156a75ffab342e7ef299cdea9ee0a0b6f8bf0d (patch) | |
tree | 7f71cbaaa366e194c34894a170593bfae7393f3d | |
parent | ebd0fdad737c2ee79e9cde90f350a705307be578 (diff) | |
download | sqlalchemy-d0156a75ffab342e7ef299cdea9ee0a0b6f8bf0d.tar.gz |
fixes for savepoint test
-rw-r--r-- | test/orm/test_transaction.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/orm/test_transaction.py b/test/orm/test_transaction.py index 396ed4e54..b8b8d8049 100644 --- a/test/orm/test_transaction.py +++ b/test/orm/test_transaction.py @@ -280,6 +280,7 @@ class SavepointTest(TransactionTest): @testing.requires.savepoints def test_savepoint_rollback(self): + User = self.classes.User s = self.session() u1 = User(name='ed') u2 = User(name='jack') @@ -303,6 +304,7 @@ class SavepointTest(TransactionTest): @testing.requires.savepoints def test_savepoint_delete(self): + User = self.classes.User s = self.session() u1 = User(name='ed') s.add(u1) @@ -316,6 +318,7 @@ class SavepointTest(TransactionTest): @testing.requires.savepoints def test_savepoint_commit(self): + User = self.classes.User s = self.session() u1 = User(name='ed') u2 = User(name='jack') @@ -406,6 +409,7 @@ class SavepointTest(TransactionTest): @testing.requires.savepoints def test_expunge_pending_on_rollback(self): + User = self.classes.User sess = self.session() sess.begin_nested() @@ -417,6 +421,7 @@ class SavepointTest(TransactionTest): @testing.requires.savepoints def test_update_deleted_on_rollback(self): + User = self.classes.User s = self.session() u1 = User(name='ed') s.add(u1) |