Commit d25f7811 authored by Denis Bilenko's avatar Denis Bilenko

test__socket.py: remove unused variable

--HG--
extra : transplant_source : %00%D8%AA%0D%F2%3D%DD%14%C9%C7%1B%CB%1C%ED%09%07%8C%BF%DF%06
parent 176e6f47
......@@ -153,13 +153,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