diff options
| author | Barry Warsaw | 2008-07-10 22:23:52 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2008-07-10 22:23:52 -0400 |
| commit | 61e99148ab4052f00951e72e19b3a750ef1e4739 (patch) | |
| tree | 06ffed62dc4ffb55ef1036f02268dee5a0aa6847 /mailman/testing/helpers.py | |
| parent | 408043ad8404798e9b8b93a1ee1cd81db897639c (diff) | |
| parent | 82de03b4699cb9e841f4196ff7c92e043056d3e3 (diff) | |
| download | mailman-61e99148ab4052f00951e72e19b3a750ef1e4739.tar.gz mailman-61e99148ab4052f00951e72e19b3a750ef1e4739.tar.zst mailman-61e99148ab4052f00951e72e19b3a750ef1e4739.zip | |
Merging the Mail-Archive.com branch.
Diffstat (limited to 'mailman/testing/helpers.py')
| -rw-r--r-- | mailman/testing/helpers.py | 6 |
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.""" |
