Commit 3b4c4727 authored by Denis Bilenko's avatar Denis Bilenko

test__server.py: expect EADDRNOTAVAIL in connect

parent c759b204
......@@ -90,7 +90,8 @@ class TestCase(greentest.TestCase):
conn = self.makefile()
raise AssertionError('Connection was not refused: %r' % (conn._sock, ))
except socket.error, ex:
self.assertEqual(ex[0], errno.ECONNREFUSED)
if ex[0] not in (errno.ECONNREFUSED, errno.EADDRNOTAVAIL):
raise
def assert500(self):
Settings.assert500(self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment