summaryrefslogtreecommitdiff
path: root/src/mailman/runners/tests
diff options
context:
space:
mode:
authorBarry Warsaw2016-01-25 14:59:36 -0500
committerBarry Warsaw2016-01-25 14:59:36 -0500
commitd063ee4dd4579ca931e36f0761084e4ab7cd0335 (patch)
treee1ee71db22560274a82a68dd082f35ee0d5ad3ee /src/mailman/runners/tests
parent471851bab74874f02de08d71a3c1256c3ec6390d (diff)
downloadmailman-d063ee4dd4579ca931e36f0761084e4ab7cd0335.tar.gz
mailman-d063ee4dd4579ca931e36f0761084e4ab7cd0335.tar.zst
mailman-d063ee4dd4579ca931e36f0761084e4ab7cd0335.zip
Diffstat (limited to 'src/mailman/runners/tests')
-rw-r--r--src/mailman/runners/tests/test_incoming.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mailman/runners/tests/test_incoming.py b/src/mailman/runners/tests/test_incoming.py
index 29274cfc6..d813cc34b 100644
--- a/src/mailman/runners/tests/test_incoming.py
+++ b/src/mailman/runners/tests/test_incoming.py
@@ -58,7 +58,9 @@ class TestIncoming(unittest.TestCase):
self._mlist.posting_chain = 'test posting'
self._mlist.owner_chain = 'test owner'
config.chains['test posting'] = Chain('posting')
+ self.addCleanup(config.chains.pop, 'test posting')
config.chains['test owner'] = Chain('owner')
+ self.addCleanup(config.chains.pop, 'test owner')
self._in = make_testable_runner(IncomingRunner, 'in')
self._msg = mfs("""\
From: anne@example.com
@@ -66,10 +68,6 @@ To: test@example.com
""")
- def tearDown(self):
- del config.chains['test posting']
- del config.chains['test owner']
-
def test_posting(self):
# A message posted to the list goes through the posting chain.
msgdata = dict(listid='test.example.com')