diff options
| author | Andrea Crotti | 2012-03-14 16:49:59 +0000 |
|---|---|---|
| committer | Andrea Crotti | 2012-03-14 16:49:59 +0000 |
| commit | 52a7e534427f6a62db0f7d857dc4fc2a19137f0a (patch) | |
| tree | 5ac1e40555fc391dae241d0741d1fafbaa338396 /src/mailman/testing/helpers.py | |
| parent | f66b5879531dc37509402cc17c1e7bfe817d964c (diff) | |
| parent | bcc42e2201c7172848185e5675a7b79e3d28aa0f (diff) | |
| download | mailman-52a7e534427f6a62db0f7d857dc4fc2a19137f0a.tar.gz mailman-52a7e534427f6a62db0f7d857dc4fc2a19137f0a.tar.zst mailman-52a7e534427f6a62db0f7d857dc4fc2a19137f0a.zip | |
Diffstat (limited to 'src/mailman/testing/helpers.py')
| -rw-r--r-- | src/mailman/testing/helpers.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py index e61aca605..58c72d6d9 100644 --- a/src/mailman/testing/helpers.py +++ b/src/mailman/testing/helpers.py @@ -223,7 +223,7 @@ class LMTP(smtplib.SMTP): return code, msg -def get_lmtp_client(): +def get_lmtp_client(quiet=False): """Return a connected LMTP client.""" # It's possible the process has started but is not yet accepting # connections. Wait a little while. @@ -233,7 +233,8 @@ def get_lmtp_client(): try: response = lmtp.connect( config.mta.lmtp_host, int(config.mta.lmtp_port)) - print response + if not quiet: + print response return lmtp except socket.error as error: if error[0] == errno.ECONNREFUSED: |
