summaryrefslogtreecommitdiff
path: root/src/mailman/testing/helpers.py
diff options
context:
space:
mode:
authorBarry Warsaw2013-11-26 17:07:11 -0500
committerBarry Warsaw2013-11-26 17:07:11 -0500
commit177d3f81f4c786ad51083dfce6c4a5fd127693bd (patch)
treed4ae3568314fba0b194cdea7722284d7afd06724 /src/mailman/testing/helpers.py
parent833633741f110354408b3e0cfd7f733a2541e97c (diff)
downloadmailman-177d3f81f4c786ad51083dfce6c4a5fd127693bd.tar.gz
mailman-177d3f81f4c786ad51083dfce6c4a5fd127693bd.tar.zst
mailman-177d3f81f4c786ad51083dfce6c4a5fd127693bd.zip
Diffstat (limited to 'src/mailman/testing/helpers.py')
-rw-r--r--src/mailman/testing/helpers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py
index 8201f952a..9f9e28dc6 100644
--- a/src/mailman/testing/helpers.py
+++ b/src/mailman/testing/helpers.py
@@ -478,6 +478,10 @@ def reset_the_world():
with transaction():
for message in message_store.messages:
message_store.delete_message(message['message-id'])
+ # Delete any other residual messages.
+ for dirpath, dirnames, filenames in os.walk(config.MESSAGES_DIR):
+ for filename in filenames:
+ os.remove(os.path.join(dirpath, filename))
# Reset the global style manager.
getUtility(IStyleManager).populate()
# Remove all dynamic header-match rules.