summaryrefslogtreecommitdiff
path: root/src/mailman/testing/helpers.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-01-26 15:32:19 -0500
committerBarry Warsaw2016-01-26 15:32:19 -0500
commit802ce668e67f51f904c69fdab2f5565a73c15e8a (patch)
tree8ec85559627422b0b13b520cacdc8a776aeee640 /src/mailman/testing/helpers.py
parent57a07393e984dbbc356bc05f0c6801ffe1536b47 (diff)
downloadmailman-802ce668e67f51f904c69fdab2f5565a73c15e8a.tar.gz
mailman-802ce668e67f51f904c69fdab2f5565a73c15e8a.tar.zst
mailman-802ce668e67f51f904c69fdab2f5565a73c15e8a.zip
Diffstat (limited to 'src/mailman/testing/helpers.py')
-rw-r--r--src/mailman/testing/helpers.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py
index fa16c1f7f..2e3809f03 100644
--- a/src/mailman/testing/helpers.py
+++ b/src/mailman/testing/helpers.py
@@ -99,7 +99,7 @@ def make_testable_runner(runner_class, name=None, predicate=None):
"""Stop processing when the queue is empty."""
def __init__(self, *args, **kws):
- super(EmptyingRunner, self).__init__(*args, **kws)
+ super().__init__(*args, **kws)
# We know it's an EmptyingRunner, so really we want to see the
# super class in the log files.
self.__class__.__name__ = runner_class.__name__
@@ -166,8 +166,7 @@ class TestableMaster(Master):
until the pass condition is set.
:type start_check: Callable taking no arguments, returning nothing.
"""
- super(TestableMaster, self).__init__(
- restartable=False, config_file=config.filename)
+ super().__init__(restartable=False, config_file=config.filename)
self.start_check = start_check
self.event = threading.Event()
self.thread = threading.Thread(target=self.loop)
@@ -215,7 +214,7 @@ class TestableMaster(Master):
self.start_check()
# Let the blocking thread know everything's running.
self.event.set()
- super(TestableMaster, self).loop()
+ super().loop()
@property
def runner_pids(self):