Commit 5a5a2a46 authored by Denis Bilenko's avatar Denis Bilenko

fix TestCreateConnection on windows

parent 91b35dad
...@@ -148,7 +148,7 @@ class TestCreateConnection(greentest.TestCase): ...@@ -148,7 +148,7 @@ class TestCreateConnection(greentest.TestCase):
socket.create_connection(('localhost', 4), timeout=30, source_address=('', source_port)) socket.create_connection(('localhost', 4), timeout=30, source_address=('', source_port))
except socket.error: except socket.error:
ex = sys.exc_info()[1] ex = sys.exc_info()[1]
if 'connection refused' not in str(ex).lower(): if 'refused' not in str(ex).lower():
raise raise
......
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