summaryrefslogtreecommitdiff
path: root/src/mailman/database/postgresql.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-07-25 14:20:06 -0400
committerBarry Warsaw2012-07-25 14:20:06 -0400
commit3ecb13338d36f7f4bccb609bdb2d54ff11359f8f (patch)
treef9ab028a80b3c211a4fa34bb2b074968c04df1f7 /src/mailman/database/postgresql.py
parent8dec52e851c4cd8fcdd29702b95fad039fcedf2a (diff)
downloadmailman-3ecb13338d36f7f4bccb609bdb2d54ff11359f8f.tar.gz
mailman-3ecb13338d36f7f4bccb609bdb2d54ff11359f8f.tar.zst
mailman-3ecb13338d36f7f4bccb609bdb2d54ff11359f8f.zip
Diffstat (limited to 'src/mailman/database/postgresql.py')
-rw-r--r--src/mailman/database/postgresql.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mailman/database/postgresql.py b/src/mailman/database/postgresql.py
index 1d1abca9e..4200ae4fe 100644
--- a/src/mailman/database/postgresql.py
+++ b/src/mailman/database/postgresql.py
@@ -43,13 +43,10 @@ class _TestDB:
self.database = database
def cleanup(self):
- self.database.store.execute('ABORT;')
+ self.database.store.rollback()
self.database.store.close()
config.db.store.execute('DROP DATABASE mmtest;')
- def abort(self):
- self.database.store.execute('ABORT;')
-
class PostgreSQLDatabase(StormBaseDatabase):