Merge pull request #1739 from gracinet/0.10-test_smtp-no-network

Fixes test_smtp connects to wrong inet (if listening on ::1 instead of 127.0.0.1)
This commit is contained in:
Serg G. Brester 2017-03-28 19:49:58 +02:00 committed by GitHub
commit ec19aed489

View file

@ -67,7 +67,7 @@ class SMTPActionTest(unittest.TestCase):
port = self.smtpd.socket.getsockname()[1]
self.action = customActionModule.Action(
self.jail, "test", host="127.0.0.1:%i" % port)
self.jail, "test", host="localhost:%i" % port)
## because of bug in loop (see loop in asyncserver.py) use it's loop instead of asyncore.loop:
self._active = True