summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-07-19 19:23:54 (GMT)
committerGuido van Rossum <guido@python.org>2002-07-19 19:23:54 (GMT)
commit246a58a10bd45b56042c913f726ae94f18ebbf66 (patch)
treec87ff3d27f27b989fb0f286e7807947fa02d59a5 /Lib/test/test_socket.py
parent36eb4b2d7ea3c85537a3a2a0abd22648b58448bf (diff)
downloadcpython-246a58a10bd45b56042c913f726ae94f18ebbf66.zip
cpython-246a58a10bd45b56042c913f726ae94f18ebbf66.tar.gz
cpython-246a58a10bd45b56042c913f726ae94f18ebbf66.tar.bz2
Remove a few lines that aren't used and cause problems on platforms
where recvfrom() on a TCP stream returns None for the address. This should address the remaining problems on FreeBSD.
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r--Lib/test/test_socket.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index d358966..cd23f8b 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -381,8 +381,6 @@ class BasicTCPTest(SocketConnectedTest):
def testRecvFrom(self):
"""Testing large recvfrom() over TCP."""
msg, addr = self.cli_conn.recvfrom(1024)
- hostname, port = addr
- ##self.assertEqual(hostname, socket.gethostbyname('localhost'))
self.assertEqual(msg, MSG)
def _testRecvFrom(self):
@@ -393,8 +391,6 @@ class BasicTCPTest(SocketConnectedTest):
seg1, addr = self.cli_conn.recvfrom(len(MSG)-3)
seg2, addr = self.cli_conn.recvfrom(1024)
msg = seg1 + seg2
- hostname, port = addr
- ##self.assertEqual(hostname, socket.gethostbyname('localhost'))
self.assertEqual(msg, MSG)
def _testOverFlowRecvFrom(self):
@@ -451,8 +447,6 @@ class BasicUDPTest(ThreadedUDPSocketTest):
def testRecvFrom(self):
"""Testing recvfrom() over UDP."""
msg, addr = self.serv.recvfrom(len(MSG))
- hostname, port = addr
- ##self.assertEqual(hostname, socket.gethostbyname('localhost'))
self.assertEqual(msg, MSG)
def _testRecvFrom(self):