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)
pull/1740/head
Serg G. Brester 2017-03-28 19:49:58 +02:00 committed by GitHub
commit ec19aed489
1 changed files with 1 additions and 1 deletions

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