summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-04-02 21:18:46 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-04-02 21:18:46 (GMT)
commitf7cf388c3122b72bb71af0f497e77608570cb08f (patch)
tree02f58439081c3c53204ef07da139e86781bfbdd4 /Lib/test/test_socket.py
parent89a01cd44bd2fc04e63a1ce3d60d8153e671ddde (diff)
downloadcpython-f7cf388c3122b72bb71af0f497e77608570cb08f.zip
cpython-f7cf388c3122b72bb71af0f497e77608570cb08f.tar.gz
cpython-f7cf388c3122b72bb71af0f497e77608570cb08f.tar.bz2
Remove debug prints; the buildbot now passes the tests
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r--Lib/test/test_socket.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index a3ee0d4..6140962 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -15,14 +15,6 @@ import array
from weakref import proxy
import signal
-# Temporary hack to see why test_socket hangs on one buildbot
-if os.environ.get('COMPUTERNAME') == "GRAPE":
- def verbose_write(arg):
- print >>sys.__stdout__, arg
-else:
- def verbose_write(arg):
- pass
-
PORT = 50007
HOST = 'localhost'
MSG = 'Michael Gilfix was here\n'
@@ -30,21 +22,15 @@ MSG = 'Michael Gilfix was here\n'
class SocketTCPTest(unittest.TestCase):
def setUp(self):
- verbose_write(self)
self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.serv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
- verbose_write(str(self) + " socket created")
global PORT
PORT = test_support.bind_port(self.serv, HOST, PORT)
- verbose_write(str(self) + " start listening")
self.serv.listen(1)
- verbose_write(str(self) + " started")
def tearDown(self):
- verbose_write(str(self) + " close")
self.serv.close()
self.serv = None
- verbose_write(str(self) + " done")
class SocketUDPTest(unittest.TestCase):