summaryrefslogtreecommitdiff
path: root/src/mailman/testing/helpers.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-07-02 16:56:35 -0400
committerBarry Warsaw2012-07-02 16:56:35 -0400
commitbbbf437a64e2bcf2ac72c329f0faf53ed91f3432 (patch)
tree3f6a9e84a67b003b65888a0ec2f7bb3397b4e26a /src/mailman/testing/helpers.py
parent8a84c3602094517d8690b6c7ab7e25c1570d59b7 (diff)
downloadmailman-bbbf437a64e2bcf2ac72c329f0faf53ed91f3432.tar.gz
mailman-bbbf437a64e2bcf2ac72c329f0faf53ed91f3432.tar.zst
mailman-bbbf437a64e2bcf2ac72c329f0faf53ed91f3432.zip
Diffstat (limited to 'src/mailman/testing/helpers.py')
-rw-r--r--src/mailman/testing/helpers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py
index 5252c5334..84f215574 100644
--- a/src/mailman/testing/helpers.py
+++ b/src/mailman/testing/helpers.py
@@ -343,14 +343,14 @@ def call_api(url, data=None, method=None, username=None, password=None):
@contextmanager
def event_subscribers(*subscribers):
- """Temporarily set the Zope event subscribers list.
+ """Temporarily extend the Zope event subscribers list.
:param subscribers: A sequence of event subscribers.
:type subscribers: sequence of callables, each receiving one argument, the
event.
"""
old_subscribers = event.subscribers[:]
- event.subscribers = list(subscribers)
+ event.subscribers.extend(subscribers)
try:
yield
finally: