summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-03-29 13:47:05 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-03-29 13:47:05 (GMT)
commit5e08e8b15c9591261c0c95adcf9c33fdec032124 (patch)
tree259d9cfa8b6f467e4db89127b00cb105c244b36b
parentf2bfd54d6f2acde253ae24805edf116c372bd81e (diff)
downloadcpython-5e08e8b15c9591261c0c95adcf9c33fdec032124.zip
cpython-5e08e8b15c9591261c0c95adcf9c33fdec032124.tar.gz
cpython-5e08e8b15c9591261c0c95adcf9c33fdec032124.tar.bz2
The buildbot "x86 W2k8 trunk" seems to hang in test_socket.
http://www.python.org/dev/buildbot/trunk/x86%20W2k8%20trunk/builds/255/step-test/0 Temporarily increase verbosity of this test.
-rw-r--r--Lib/test/test_socket.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 6140962..db8947b 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -15,6 +15,14 @@ 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'
@@ -22,6 +30,7 @@ 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)
global PORT
@@ -31,10 +40,12 @@ class SocketTCPTest(unittest.TestCase):
def tearDown(self):
self.serv.close()
self.serv = None
+ verbose_write(str(self) + " done")
class SocketUDPTest(unittest.TestCase):
def setUp(self):
+ verbose_write(self)
self.serv = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
self.serv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
global PORT
@@ -43,6 +54,7 @@ class SocketUDPTest(unittest.TestCase):
def tearDown(self):
self.serv.close()
self.serv = None
+ verbose_write(str(self) + " done")
class ThreadableTest:
"""Threadable Test class