diff options
| author | bwarsaw | 2006-07-08 17:46:42 +0000 |
|---|---|---|
| committer | bwarsaw | 2006-07-08 17:46:42 +0000 |
| commit | 7a94dcd001240e0c06cc4b50017b8bfd097d9ff4 (patch) | |
| tree | adbf91c8a0fab16aacf878eb0896f86b16560c14 | |
| parent | 0e9fb0aec9fcf0027dd354b48196b1fa0d420c4d (diff) | |
| download | mailman-7a94dcd001240e0c06cc4b50017b8bfd097d9ff4.tar.gz mailman-7a94dcd001240e0c06cc4b50017b8bfd097d9ff4.tar.zst mailman-7a94dcd001240e0c06cc4b50017b8bfd097d9ff4.zip | |
| -rw-r--r-- | Mailman/testing/emailbase.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Mailman/testing/emailbase.py b/Mailman/testing/emailbase.py index c062ea08a..7b80381b4 100644 --- a/Mailman/testing/emailbase.py +++ b/Mailman/testing/emailbase.py @@ -54,7 +54,6 @@ class SinkServer(smtpd.SMTPServer): class EmailBase(TestBase): def setUp(self): - TestBase.setUp(self) # Find an unused non-root requiring port to listen on. Set up a # configuration file that causes the underlying outgoing runner to use # the same port, then start Mailman. @@ -68,6 +67,11 @@ class EmailBase(TestBase): # Second argument is ignored. self._server = SinkServer(('localhost', TESTPORT), None) os.system('bin/mailmanctl -C %s -q start' % self._configfile) + # Don't call our superclass's setUp until the above succeeds, + # otherwise, should it fail, we'll be left with a stale _xtest list + # which would have to be manually removed. unittest doesn't call + # tearDown() for errors in setUp(). + TestBase.setUp(self) def tearDown(self): os.system('bin/mailmanctl -C %s -q stop' % self._configfile) |
