summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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.