test_socket Testing for mission critical constants. ... ok Testing getservbyname(). ... ok Testing getsockopt(). ... ok Testing hostname resolution mechanisms. ... ok Making sure getnameinfo doesn't crash the interpreter. ... ok Testing for existance of non-crucial constants. ... ok Testing reference count for getnameinfo. ... ok Testing setsockopt(). ... ok Testing getsockname(). ... ok Testing that socket module exceptions. ... ok Testing fromfd(). ... ok Testing receive in chunks over TCP. ... ok Testing recvfrom() in chunks over TCP. ... seg1='Michael Gilfix was he', addr='None' seg2='re ', addr='None' ERROR Testing large receive over TCP. ... ok Testing large recvfrom() over TCP. ... msg='Michael Gilfix was here ', addr='None' ERROR Testing sendall() with a 2048 byte string over TCP. ... FAIL Testing shutdown(). ... ok Testing recvfrom() over UDP. ... ok Testing sendto() and Recv() over UDP. ... ok Testing non-blocking accept. ... conn= addr=('127.0.0.1', 3443) FAIL Testing non-blocking connect. ... ERROR Testing non-blocking recv. ... ok Testing whether set blocking works. ... ok Performing file readline test. ... ok Performing small file read test. ... ok Performing unbuffered file read test. ... ok ====================================================================== ERROR: Testing recvfrom() in chunks over TCP. ---------------------------------------------------------------------- Traceback (most recent call last): File "../../Lib/test/test_socket.py", line 363, in testOverFlowRecvFrom hostname, port = addr TypeError: unpack non-sequence ====================================================================== ERROR: Testing large recvfrom() over TCP. ---------------------------------------------------------------------- Traceback (most recent call last): File "../../Lib/test/test_socket.py", line 349, in testRecvFrom hostname, port = addr TypeError: unpack non-sequence ====================================================================== ERROR: Testing non-blocking connect. ---------------------------------------------------------------------- Traceback (most recent call last): File "../../Lib/test/test_socket.py", line 117, in _tearDown self.fail(msg) File "F:/DEV/CVS_TEST/PYTHON-TEST/Lib/unittest.py", line 254, in fail raise self.failureException, msg AssertionError: (56, 'Socket is already connected') ====================================================================== FAIL: Testing sendall() with a 2048 byte string over TCP. ---------------------------------------------------------------------- Traceback (most recent call last): File "../../Lib/test/test_socket.py", line 376, in testSendAll self.assert_(len(read) == 1024, "Error performing sendall.") File "F:/DEV/CVS_TEST/PYTHON-TEST/Lib/unittest.py", line 262, in failUnless if not expr: raise self.failureException, msg AssertionError: Error performing sendall. ====================================================================== FAIL: Testing non-blocking accept. ---------------------------------------------------------------------- Traceback (most recent call last): File "../../Lib/test/test_socket.py", line 456, in testAccept self.fail("Error trying to do non-blocking accept.") File "F:/DEV/CVS_TEST/PYTHON-TEST/Lib/unittest.py", line 254, in fail raise self.failureException, msg AssertionError: Error trying to do non-blocking accept. ---------------------------------------------------------------------- Ran 26 tests in 0.130s FAILED (failures=2, errors=3) test test_socket failed -- errors occurred; run in verbose mode for details 1 test failed: test_socket