diff options
| author | Barry Warsaw | 2014-12-15 17:29:02 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2014-12-15 17:29:02 -0500 |
| commit | 130bd8179188fbbcf488ab668baae4fe945bcfc2 (patch) | |
| tree | f93e4e5f9afdc602d205650fcf3c08e0ca780359 /src/mailman/testing/helpers.py | |
| parent | e3b97fadcf345604c9760113ddf06505a2f3b95c (diff) | |
| download | mailman-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.py | 5 |
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): |
