summaryrefslogtreecommitdiff
path: root/src/mailman/testing/helpers.py
diff options
context:
space:
mode:
authorBarry Warsaw2011-11-06 18:20:08 -0500
committerBarry Warsaw2011-11-06 18:20:08 -0500
commitac49e4c485345058d2ee582b9966f441b2349738 (patch)
treeed6bbe0bf525058f00d83892b5caaae51e1ca258 /src/mailman/testing/helpers.py
parentb475b1314386a574166d9c1d8095b363e7ceba9c (diff)
downloadmailman-ac49e4c485345058d2ee582b9966f441b2349738.tar.gz
mailman-ac49e4c485345058d2ee582b9966f441b2349738.tar.zst
mailman-ac49e4c485345058d2ee582b9966f441b2349738.zip
Diffstat (limited to 'src/mailman/testing/helpers.py')
-rw-r--r--src/mailman/testing/helpers.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py
index a7fc4e289..de35be8be 100644
--- a/src/mailman/testing/helpers.py
+++ b/src/mailman/testing/helpers.py
@@ -353,7 +353,7 @@ def reset_the_world():
"""Reset everything:
* Clear out the database
- * Remove all residual queue files
+ * Remove all residual queue and digest files
* Clear the message store
* Reset the global style manager
@@ -362,6 +362,11 @@ def reset_the_world():
"""
# Reset the database between tests.
config.db._reset()
+ # Remove any digest files.
+ for dirpath, dirnames, filenames in os.walk(config.LIST_DATA_DIR):
+ for filename in filenames:
+ if filename.endswith('.mmdf'):
+ os.remove(os.path.join(dirpath, filename))
# Remove all residual queue files.
for dirpath, dirnames, filenames in os.walk(config.QUEUE_DIR):
for filename in filenames: