diff options
| -rw-r--r-- | src/mailman_pgp/testing/layers.py | 1 |
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) |
