summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-03-29 14:53:05 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-03-29 14:53:05 (GMT)
commit672fbf519568bc295aa64992dcbabe0eebccb5fc (patch)
tree0e3162db5b63101759c41cfdefec239cb5acfb18 /Lib
parent5e08e8b15c9591261c0c95adcf9c33fdec032124 (diff)
downloadcpython-672fbf519568bc295aa64992dcbabe0eebccb5fc.zip
cpython-672fbf519568bc295aa64992dcbabe0eebccb5fc.tar.gz
cpython-672fbf519568bc295aa64992dcbabe0eebccb5fc.tar.bz2
Still investigating on the hanging test_socket.
the test itself doesn't do anything on windows, focus on setUp and tearDown.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_socket.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index db8947b..a3ee0d4 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -33,11 +33,15 @@ class SocketTCPTest(unittest.TestCase):
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")
@@ -45,7 +49,6 @@ class SocketTCPTest(unittest.TestCase):
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
@@ -54,7 +57,6 @@ class SocketUDPTest(unittest.TestCase):
def tearDown(self):
self.serv.close()
self.serv = None
- verbose_write(str(self) + " done")
class ThreadableTest:
"""Threadable Test class