summaryrefslogtreecommitdiff
path: root/src/mailman/chains/tests/test_accept.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/chains/tests/test_accept.py')
-rw-r--r--src/mailman/chains/tests/test_accept.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mailman/chains/tests/test_accept.py b/src/mailman/chains/tests/test_accept.py
index 62370021d..661ad2146 100644
--- a/src/mailman/chains/tests/test_accept.py
+++ b/src/mailman/chains/tests/test_accept.py
@@ -17,11 +17,6 @@
"""Test the accept chain."""
-__all__ = [
- 'TestAccept',
- ]
-
-
import unittest
from mailman.app.lifecycle import create_list
@@ -47,7 +42,6 @@ class MyChain:
yield Link('truth', LinkAction.jump, 'accept')
-
class TestAccept(unittest.TestCase):
"""Test the accept chain."""
@@ -66,7 +60,7 @@ Subject: Ignore
config.chains['mine'] = MyChain()
self.addCleanup(config.chains.pop, 'mine')
hits = None
- def handler(event):
+ def handler(event): # flake8: noqa
nonlocal hits
if isinstance(event, AcceptEvent):
hits = event.msg['x-mailman-rule-hits']