summaryrefslogtreecommitdiff
path: root/src/mailman/testing/helpers.py
diff options
context:
space:
mode:
authorBarry Warsaw2014-12-15 17:29:02 -0500
committerBarry Warsaw2014-12-15 17:29:02 -0500
commit130bd8179188fbbcf488ab668baae4fe945bcfc2 (patch)
treef93e4e5f9afdc602d205650fcf3c08e0ca780359 /src/mailman/testing/helpers.py
parente3b97fadcf345604c9760113ddf06505a2f3b95c (diff)
downloadmailman-130bd8179188fbbcf488ab668baae4fe945bcfc2.tar.gz
mailman-130bd8179188fbbcf488ab668baae4fe945bcfc2.tar.zst
mailman-130bd8179188fbbcf488ab668baae4fe945bcfc2.zip
Diffstat (limited to 'src/mailman/testing/helpers.py')
-rw-r--r--src/mailman/testing/helpers.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py
index 882e69cd9..5bfac20ee 100644
--- a/src/mailman/testing/helpers.py
+++ b/src/mailman/testing/helpers.py
@@ -471,10 +471,11 @@ def reset_the_world():
"""
# Reset the database between tests.
config.db._reset()
- # Remove any digest files.
+ # Remove any digest files and members.txt file (for the file-recips
+ # handler) in the lists' data directories.
for dirpath, dirnames, filenames in os.walk(config.LIST_DATA_DIR):
for filename in filenames:
- if filename.endswith('.mmdf'):
+ if filename.endswith('.mmdf') or filename == 'members.txt':
os.remove(os.path.join(dirpath, filename))
# Remove all residual queue files.
for dirpath, dirnames, filenames in os.walk(config.QUEUE_DIR):