From 6786292e5070a26e4112625899147d6a56c8f407 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Sun, 11 Jul 2010 10:03:44 -0700 Subject: Updated unit tests for current Mailman so all tests should pass. --- tests/EmailBase.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/EmailBase.py') diff --git a/tests/EmailBase.py b/tests/EmailBase.py index d83ccbcf..69868c82 100644 --- a/tests/EmailBase.py +++ b/tests/EmailBase.py @@ -1,4 +1,4 @@ -# Copyright (C) 2001-2003 by the Free Software Foundation, Inc. +# Copyright (C) 2001-2010 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -49,6 +49,8 @@ class SinkServer(smtpd.SMTPServer): class EmailBase(TestBase): def setUp(self): TestBase.setUp(self) + if mm_cfg.SMTPPORT == 0: + mm_cfg.SMTPPORT = 25 # Second argument tuple is ignored. self._server = SinkServer(('localhost', mm_cfg.SMTPPORT), ('localhost', 25)) -- cgit v1.2.3