diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-03-29 14:53:05 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-03-29 14:53:05 (GMT) |
commit | 672fbf519568bc295aa64992dcbabe0eebccb5fc (patch) | |
tree | 0e3162db5b63101759c41cfdefec239cb5acfb18 /Lib | |
parent | 5e08e8b15c9591261c0c95adcf9c33fdec032124 (diff) | |
download | cpython-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.py | 6 |
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 |