diff options
| author | Barry Warsaw | 2013-11-27 15:13:10 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2013-11-27 15:13:10 -0500 |
| commit | 0ce1d7a1da2e93270acc49d4527417fa6c20a911 (patch) | |
| tree | bbfa43d9f71690096ed218ca5862550a726f5994 /src/mailman/testing | |
| parent | adde8bfb3f90f2d2204500bce75550fee8369bcb (diff) | |
| parent | b3ce2a4f6106fa4b2d014ab921f9b6a25b067de3 (diff) | |
| download | mailman-0ce1d7a1da2e93270acc49d4527417fa6c20a911.tar.gz mailman-0ce1d7a1da2e93270acc49d4527417fa6c20a911.tar.zst mailman-0ce1d7a1da2e93270acc49d4527417fa6c20a911.zip | |
Diffstat (limited to 'src/mailman/testing')
| -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. |
