~msapiro/mailman/topics

« back to all changes in this revision

Viewing changes to tests/EmailBase.py

  • Committer: Mark Sapiro
  • Date: 2014-12-03 23:47:23 UTC
  • mfrom: (1006.1.356 2.2)
  • Revision ID: mark@msapiro.net-20141203234723-3pcwx85xua4n84yx
Merged the 2.2 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2001-2003 by the Free Software Foundation, Inc.
 
1
# Copyright (C) 2001-2010 by the Free Software Foundation, Inc.
2
2
#
3
3
# This program is free software; you can redistribute it and/or
4
4
# modify it under the terms of the GNU General Public License
49
49
class EmailBase(TestBase):
50
50
    def setUp(self):
51
51
        TestBase.setUp(self)
 
52
        if mm_cfg.SMTPPORT == 0:
 
53
            mm_cfg.SMTPPORT = 25
52
54
        # Second argument tuple is ignored.
53
55
        self._server = SinkServer(('localhost', mm_cfg.SMTPPORT),
54
56
                                  ('localhost', 25))