summaryrefslogtreecommitdiff
path: root/src/mailman/testing/helpers.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-10-15 22:18:38 -0400
committerBarry Warsaw2009-10-15 22:18:38 -0400
commitd0eff3c214b4940cb30ec1152fcabf0f34f49194 (patch)
tree77f68adab3736cb722f53858dde3199240168751 /src/mailman/testing/helpers.py
parent37332636e899c023fb31384413578346086c7692 (diff)
downloadmailman-d0eff3c214b4940cb30ec1152fcabf0f34f49194.tar.gz
mailman-d0eff3c214b4940cb30ec1152fcabf0f34f49194.tar.zst
mailman-d0eff3c214b4940cb30ec1152fcabf0f34f49194.zip
Diffstat (limited to 'src/mailman/testing/helpers.py')
-rw-r--r--src/mailman/testing/helpers.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py
index 7c225d788..a54e26c82 100644
--- a/src/mailman/testing/helpers.py
+++ b/src/mailman/testing/helpers.py
@@ -140,6 +140,12 @@ class TestableMaster(Master):
self.thread.daemon = True
self._started_kids = None
+ def _pause(self):
+ """See `Master`."""
+ # No-op this because the tests generally do not signal the master,
+ # which would mean the signal.pause() never exits.
+ pass
+
def start(self, *qrunners):
"""Start the master."""
self.start_qrunners(qrunners)
@@ -162,7 +168,7 @@ class TestableMaster(Master):
try:
os.kill(pid, 0)
starting_kids.remove(pid)
- except OSError, error:
+ except OSError as error:
if error.errno == errno.ESRCH:
# The child has not yet started.
pass