summaryrefslogtreecommitdiff
path: root/mailman/testing/helpers.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-07-05 10:41:12 -0400
committerBarry Warsaw2008-07-05 10:41:12 -0400
commitdda21fc619518344dfc44081c64674f6374fe404 (patch)
treec5b379ad5d375046094185767d2a0448691e41be /mailman/testing/helpers.py
parent408043ad8404798e9b8b93a1ee1cd81db897639c (diff)
downloadmailman-dda21fc619518344dfc44081c64674f6374fe404.tar.gz
mailman-dda21fc619518344dfc44081c64674f6374fe404.tar.zst
mailman-dda21fc619518344dfc44081c64674f6374fe404.zip
Diffstat (limited to 'mailman/testing/helpers.py')
-rw-r--r--mailman/testing/helpers.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/mailman/testing/helpers.py b/mailman/testing/helpers.py
index af687828f..706ef603f 100644
--- a/mailman/testing/helpers.py
+++ b/mailman/testing/helpers.py
@@ -162,7 +162,7 @@ class SMTPServer:
"""An smtp server for testing."""
host = 'localhost'
- port = 9025
+ port = 10825
def __init__(self):
self._messages = []
@@ -174,6 +174,10 @@ class SMTPServer:
"""Start the smtp server in a thread."""
log.info('test SMTP server starting')
self._thread.start()
+ smtpd = smtplib.SMTP()
+ smtpd.connect(self.host, self.port)
+ smtpd.helo('test.localhost')
+ smtpd.quit()
def stop(self):
"""Stop the smtp server."""