summaryrefslogtreecommitdiff
path: root/src/mailman/runners/tests/test_incoming.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/runners/tests/test_incoming.py')
-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')