aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp
diff options
context:
space:
mode:
authorJ08nY2017-07-13 23:52:32 +0200
committerJ08nY2017-07-13 23:52:32 +0200
commit08389caf276e1b866cae2f6afc1d47b9c1876af5 (patch)
treea2cac39c8881ce0759310a9ea8b5f93baead8c7b /src/mailman_pgp
parentf921aeeb2156f81ac2dd1a3db9dd4380b0dcb6da (diff)
downloadmailman-pgp-08389caf276e1b866cae2f6afc1d47b9c1876af5.tar.gz
mailman-pgp-08389caf276e1b866cae2f6afc1d47b9c1876af5.tar.zst
mailman-pgp-08389caf276e1b866cae2f6afc1d47b9c1876af5.zip
Diffstat (limited to 'src/mailman_pgp')
-rw-r--r--src/mailman_pgp/testing/layers.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mailman_pgp/testing/layers.py b/src/mailman_pgp/testing/layers.py
index 5e0d8b3..aabf216 100644
--- a/src/mailman_pgp/testing/layers.py
+++ b/src/mailman_pgp/testing/layers.py
@@ -30,6 +30,7 @@ def reset_pgp_world():
full_path = os.path.join(keydir, path)
if isfile(full_path):
os.remove(full_path)
+ config.db.session.rollback()
with transaction():
Base.metadata.drop_all(config.db.engine)
Base.metadata.create_all(config.db.engine)