diff options
Diffstat (limited to 'src/mailman/testing')
| -rw-r--r-- | src/mailman/testing/helpers.py | 3 | ||||
| -rw-r--r-- | src/mailman/testing/mta.py | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py index ea940dbcf..fa16c1f7f 100644 --- a/src/mailman/testing/helpers.py +++ b/src/mailman/testing/helpers.py @@ -220,8 +220,7 @@ class TestableMaster(Master): @property def runner_pids(self): """The pids of all the child runner processes.""" - for pid in self._started_kids: - yield pid + yield from self._started_kids diff --git a/src/mailman/testing/mta.py b/src/mailman/testing/mta.py index a75e49237..9642803e2 100644 --- a/src/mailman/testing/mta.py +++ b/src/mailman/testing/mta.py @@ -251,8 +251,7 @@ class ConnectionCountingController(QueueController): @property def messages(self): """Return all the messages received by the SMTP server.""" - for message in self: - yield message + yield from self def clear(self): """Clear all the messages from the queue.""" |
