On 6/11/2012 11:09 AM, Danci Emanuel wrote: > > > and the error that I was saying about appears here: > > Running mailman.testing.layers.SMTPLayer tests: > Tear down mailman.testing.layers.LMTPLayer in 0.009 seconds. > Set up mailman.testing.layers.SMTPLayer Traceback (most recent call last): > File > "/usr/local/mm3/mailman/eggs/zope.testrunner-4.0.4-py2.6.egg/zope/testrunner/runner.py", > line 380, in run_layer > setup_layer(options, layer, setup_layers) > File > "/usr/local/mm3/mailman/eggs/zope.testrunner-4.0.4-py2.6.egg/zope/testrunner/runner.py", > line 672, in setup_layer > layer.setUp() > File "/usr/local/mm3/mailman/src/mailman/testing/layers.py", line 254, > in setUp > cls.smtpd.start() > File "/usr/local/mm3/mailman/src/mailman/testing/mta.py", line 197, in > start > QueueController.start(self) > File > "/usr/local/mm3/mailman/eggs/lazr.smtptest-1.3-py2.6.egg/lazr/smtptest/controller.py", > line 69, in start > smtpd = self._connect() > File > "/usr/local/mm3/mailman/eggs/lazr.smtptest-1.3-py2.6.egg/lazr/smtptest/controller.py", > line 60, in _connect > smtpd.connect(self._server.host, self._server.port) > File "/usr/lib/python2.6/smtplib.py", line 295, in connect > self.sock = self._get_socket(host, port, self.timeout) > File "/usr/lib/python2.6/smtplib.py", line 273, in _get_socket > return socket.create_connection((port, host), timeout) > File "/usr/lib/python2.6/socket.py", line 514, in create_connection > raise error, msg > error: [Errno 111] Connection refused
I'm not sure what the issue is. What happens if you do the following: mark@mark-VirtualBox:~/mm/scrubber$ bin/mailman shell Welcome to the GNU Mailman shell >>> from mailman.testing import layers >>> from mailman.config import config >>> config.push('temp', """ ... [mta] ... smtp_port: 9025 ... """) >>> x = layers.SMTPLayer() >>> x.setUp() Jun 11 19:05:48 2012 (3862) [SMTPServer] listening: localhost:9025 Jun 11 19:05:48 2012 (3862) starting the SMTP server thread Jun 11 19:05:48 2012 (3862) connecting to localhost:9025 Jun 11 19:05:48 2012 (3862) [SMTPServer] starting asyncore loop Jun 11 19:05:48 2012 (3862) [ConnectionCountingServer] accepted: ('127.0.0.1', 3 3637) Jun 11 19:05:48 2012 (3862) Got HELO response: (250, 'mark-VirtualBox') Jun 11 19:05:48 2012 (3862) [ConnectionCountingServer] accepted: ('127.0.0.1', 3 3638) >>> x.tearDown() Jun 11 19:06:07 2012 (3862) stopping the SMTP server thread Jun 11 19:06:07 2012 (3862) [ConnectionCountingServer] accepted: ('127.0.0.1', 3 3639) Jun 11 19:06:07 2012 (3862) SMTP server stopped >>> mark@mark-VirtualBox:~/mm/scrubber$ In the above, "mark@mark-VirtualBox:~/mm/scrubber$" is a shell prompt in the directory in which you built Mailman at which you type what follows on that line. ">>> " and "... " are python interpreter prompts at which you type what follows on that line. Type control-D (end of file) at the last such prompt. The other lines are the responses I get. -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org