diff options
| author | bwarsaw | 2007-04-17 21:37:49 +0000 |
|---|---|---|
| committer | bwarsaw | 2007-04-17 21:37:49 +0000 |
| commit | cca5c6b455aa894078573f45f3dd2c0901e0103e (patch) | |
| tree | b0e3c481fae7bb44c9c27c258735f8318cadb530 /Mailman/testing/emailbase.py | |
| parent | 69b250129cac1edc2aef339127bdd9446b8ee5e7 (diff) | |
| download | mailman-cca5c6b455aa894078573f45f3dd2c0901e0103e.tar.gz mailman-cca5c6b455aa894078573f45f3dd2c0901e0103e.tar.zst mailman-cca5c6b455aa894078573f45f3dd2c0901e0103e.zip | |
Diffstat (limited to 'Mailman/testing/emailbase.py')
| -rw-r--r-- | Mailman/testing/emailbase.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/Mailman/testing/emailbase.py b/Mailman/testing/emailbase.py index e033195de..d0fdbf7d4 100644 --- a/Mailman/testing/emailbase.py +++ b/Mailman/testing/emailbase.py @@ -52,15 +52,6 @@ class SinkServer(smtpd.SMTPServer): class EmailBase(TestBase): - def _configure(self, fp): - TestBase._configure(self, fp) - print >> fp, 'SMTPPORT =', TESTPORT - config.SMTPPORT = TESTPORT - # Don't go nuts on mailmanctl restarts. If a qrunner fails once, it - # will keep failing. - print >> fp, 'MAX_RESTARTS = 1' - config.MAX_RESTARTS = 1 - def setUp(self): TestBase.setUp(self) try: @@ -70,7 +61,7 @@ class EmailBase(TestBase): TestBase.tearDown(self) raise try: - os.system('bin/mailmanctl -C %s -q start' % self._config) + os.system('bin/mailmanctl -C %s -q start' % config.filename) # If any errors occur in the above, be sure to manually call # tearDown(). unittest doesn't call tearDown() for errors in # setUp(). @@ -79,7 +70,7 @@ class EmailBase(TestBase): raise def tearDown(self): - os.system('bin/mailmanctl -C %s -q stop' % self._config) + os.system('bin/mailmanctl -C %s -q stop' % config.filename) self._server.close() # Wait a while until the server actually goes away while True: |
