summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBarry Warsaw2013-12-01 17:28:02 -0500
committerBarry Warsaw2013-12-01 17:28:02 -0500
commitac958ab67ee86d86302d27a97ce0cb8d2cc8c832 (patch)
tree4a2cca4e42cb21ae6772ca6bae2a9ad9b4337b63 /src
parent5a3ffbdafa682daf5ba75ac616cabb26df7c102f (diff)
downloadmailman-ac958ab67ee86d86302d27a97ce0cb8d2cc8c832.tar.gz
mailman-ac958ab67ee86d86302d27a97ce0cb8d2cc8c832.tar.zst
mailman-ac958ab67ee86d86302d27a97ce0cb8d2cc8c832.zip
Diffstat (limited to 'src')
-rw-r--r--src/mailman/rest/docs/helpers.rst1
-rw-r--r--src/mailman/testing/helpers.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/mailman/rest/docs/helpers.rst b/src/mailman/rest/docs/helpers.rst
index 4f0b1c804..3e8092f4e 100644
--- a/src/mailman/rest/docs/helpers.rst
+++ b/src/mailman/rest/docs/helpers.rst
@@ -27,6 +27,7 @@ be set in the configuration file.
... use_https: yes
... api_version: 4.2
... """)
+ >>> cleanups.append((config.pop, 'helpers'))
>>> print path_to('system')
https://geddy:2112/4.2/system
diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py
index 9f9e28dc6..af49c35af 100644
--- a/src/mailman/testing/helpers.py
+++ b/src/mailman/testing/helpers.py
@@ -46,6 +46,7 @@ import mock
import time
import uuid
import errno
+import shutil
import signal
import socket
import logging
@@ -482,6 +483,7 @@ def reset_the_world():
for dirpath, dirnames, filenames in os.walk(config.MESSAGES_DIR):
for filename in filenames:
os.remove(os.path.join(dirpath, filename))
+ shutil.rmtree(dirpath)
# Reset the global style manager.
getUtility(IStyleManager).populate()
# Remove all dynamic header-match rules.