]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Moved all of the capture_server socket setup code into the try block
authorFacundo Batista <facundobatista@gmail.com>
Sat, 28 Jul 2007 14:21:22 +0000 (14:21 +0000)
committerFacundo Batista <facundobatista@gmail.com>
Sat, 28 Jul 2007 14:21:22 +0000 (14:21 +0000)
commit8eab424fb556f2d67f5eb043c724df7634eeb80d
tree8bb7db5e3665501be9382407b665cbe2a4a261b6
parentf1e0b3f6307084dc3429bd5a1361a5be7be708bb
Moved all of the capture_server socket setup code into the try block
so that the event gets set if a failure occurs during server setup
(otherwise the test will block forever).  Changed to let the OS assign
the server port number, and client side of test waits for port number
assignment before proceeding. The test data in DispatcherWithSendTests
is also sent in multiple send() calls instead of one to make sure this
works properly. [GSoC - Alan McIntyre]
Lib/test/test_asyncore.py