diff options
| author | Barry Warsaw | 2013-11-26 17:07:11 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2013-11-26 17:07:11 -0500 |
| commit | 177d3f81f4c786ad51083dfce6c4a5fd127693bd (patch) | |
| tree | d4ae3568314fba0b194cdea7722284d7afd06724 /src/mailman/testing/helpers.py | |
| parent | 833633741f110354408b3e0cfd7f733a2541e97c (diff) | |
| download | mailman-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.py | 4 |
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. |
