mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-06-01 05:18:44 -04:00
Merge remote-tracking branch 'origin/pr/180' into pr180
This commit is contained in:
+3
-1
@@ -484,7 +484,9 @@ everything is rolled back.
|
||||
|
||||
from sqlalchemy import event
|
||||
|
||||
|
||||
class SomeTest(TestCase):
|
||||
|
||||
def setUp(self):
|
||||
# connect to the database
|
||||
self.connection = engine.connect()
|
||||
@@ -503,6 +505,6 @@ everything is rolled back.
|
||||
def restart_savepoint(session, transaction):
|
||||
if transaction.nested and not transaction._parent.nested:
|
||||
session.begin_nested()
|
||||
|
||||
session.expire_all()
|
||||
|
||||
# ... the tearDown() method stays the same
|
||||
|
||||
Reference in New Issue
Block a user