Commit 11e336e2 authored by Denis Bilenko's avatar Denis Bilenko

test__socket.py: remove unused variable

parent 8ca7ff42
......@@ -148,13 +148,13 @@ class TestCreateConnection(greentest.TestCase):
source_port = tempsock1.getsockname()[1]
tempsock2 = socket.socket()
tempsock2.bind(('', 0))
server_port = tempsock2.getsockname()[1]
tempsock2.getsockname()[1]
tempsock1.close()
del tempsock1
tempsock2.close()
del tempsock2
try:
cli = 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, ex:
if 'connection refused' not in str(ex).lower():
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