[issue1610] test_socket.py fails

Ismail Donmez report at bugs.python.org
Thu Dec 13 11:17:13 CET 2007


New submission from Ismail Donmez:

Checkout Python 2.5 from release25-maint branch, revision 59479,

[~/python-2.5]> LD_LIBRARY_PATH=/home/cartman/python-2.5: ./python
./Lib/test/test_socket.py
testCrucialConstants (__main__.GeneralModuleTests) ... ok
testDefaultTimeout (__main__.GeneralModuleTests) ... ok
testGetServBy (__main__.GeneralModuleTests) ... ERROR
testGetSockOpt (__main__.GeneralModuleTests) ... ok
testHostnameRes (__main__.GeneralModuleTests) ... ok
testIPv4toString (__main__.GeneralModuleTests) ... ok
testIPv6toString (__main__.GeneralModuleTests) ... ok
testInterpreterCrash (__main__.GeneralModuleTests) ... ok
testNewAttributes (__main__.GeneralModuleTests) ... ok
testNtoH (__main__.GeneralModuleTests) ... ok
testRefCountGetNameInfo (__main__.GeneralModuleTests) ... ok
testSendAfterClose (__main__.GeneralModuleTests) ... ok
testSetSockOpt (__main__.GeneralModuleTests) ... ok
testSockName (__main__.GeneralModuleTests) ... ok
testSocketError (__main__.GeneralModuleTests) ... ok
testStringToIPv4 (__main__.GeneralModuleTests) ... ok
testStringToIPv6 (__main__.GeneralModuleTests) ... ok
test_weakref (__main__.GeneralModuleTests) ... ok
testFromFd (__main__.BasicTCPTest) ... ok
testOverFlowRecv (__main__.BasicTCPTest) ... ok
testOverFlowRecvFrom (__main__.BasicTCPTest) ... ok
testRecv (__main__.BasicTCPTest) ... ok
testRecvFrom (__main__.BasicTCPTest) ... ok
testSendAll (__main__.BasicTCPTest) ... ok
testShutdown (__main__.BasicTCPTest) ... ok
testClose (__main__.TCPCloserTest) ... ok
testInterruptedTimeout (__main__.TCPTimeoutTest) ... ok
testTCPTimeout (__main__.TCPTimeoutTest) ... ok
testTimeoutZero (__main__.TCPTimeoutTest) ... ok
testExceptionTree (__main__.TestExceptions) ... ok
testRecvFromInto (__main__.BufferIOTest) ... ok
testRecvInto (__main__.BufferIOTest) ... ok
testRecvFrom (__main__.BasicUDPTest) ... ok
testRecvFromNegative (__main__.BasicUDPTest) ... ok
testSendtoAndRecv (__main__.BasicUDPTest) ... ok
testTimeoutZero (__main__.UDPTimeoutTest) ... ok
testUDPTimeout (__main__.UDPTimeoutTest) ... ok
testAccept (__main__.NonBlockingTCPTests) ... ok
testConnect (__main__.NonBlockingTCPTests) ... ok
testRecv (__main__.NonBlockingTCPTests) ... ok
testSetBlocking (__main__.NonBlockingTCPTests) ... ok
testClosedAttr (__main__.FileObjectClassTestCase) ... ok
testFullRead (__main__.FileObjectClassTestCase) ... ok
testReadline (__main__.FileObjectClassTestCase) ... ok
testSmallRead (__main__.FileObjectClassTestCase) ... ok
testUnbufferedRead (__main__.FileObjectClassTestCase) ... ok
testClosedAttr (__main__.UnbufferedFileObjectClassTestCase) ... ok
testFullRead (__main__.UnbufferedFileObjectClassTestCase) ... ok
testReadline (__main__.UnbufferedFileObjectClassTestCase) ... ok
testSmallRead (__main__.UnbufferedFileObjectClassTestCase) ... ok
testUnbufferedRead (__main__.UnbufferedFileObjectClassTestCase) ... ok
testUnbufferedReadline (__main__.UnbufferedFileObjectClassTestCase) ... ok
testClosedAttr (__main__.LineBufferedFileObjectClassTestCase) ... ok
testFullRead (__main__.LineBufferedFileObjectClassTestCase) ... ok
testReadline (__main__.LineBufferedFileObjectClassTestCase) ... ok
testSmallRead (__main__.LineBufferedFileObjectClassTestCase) ... ok
testUnbufferedRead (__main__.LineBufferedFileObjectClassTestCase) ... ok
testClosedAttr (__main__.SmallBufferedFileObjectClassTestCase) ... ok
testFullRead (__main__.SmallBufferedFileObjectClassTestCase) ... ok
testReadline (__main__.SmallBufferedFileObjectClassTestCase) ... ok
testSmallRead (__main__.SmallBufferedFileObjectClassTestCase) ... ok
testUnbufferedRead (__main__.SmallBufferedFileObjectClassTestCase) ... ok
testClose (__main__.Urllib2FileobjectTest) ... ok
testRecv (__main__.BasicSocketPairTest) ... ok
testSend (__main__.BasicSocketPairTest) ... ok
testLinuxAbstractNamespace (__main__.TestLinuxAbstractNamespace) ... ok
testMaxName (__main__.TestLinuxAbstractNamespace) ... ok
testNameOverflow (__main__.TestLinuxAbstractNamespace) ... ok

======================================================================
ERROR: testGetServBy (__main__.GeneralModuleTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./Lib/test/test_socket.py", line 344, in testGetServBy
    eq(socket.getservbyport(port2), service)
error: port/proto not found

----------------------------------------------------------------------
Ran 68 tests in 5.558s

FAILED (errors=1)
Traceback (most recent call last):
  File "./Lib/test/test_socket.py", line 995, in <module>
    test_main()
  File "./Lib/test/test_socket.py", line 991, in test_main
    test_support.run_unittest(*tests)
  File "/home/cartman/python-2.5/Lib/test/test_support.py", line 441, in
run_unittest
    run_suite(suite, testclass)
  File "/home/cartman/python-2.5/Lib/test/test_support.py", line 426, in
run_suite
    raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
  File "./Lib/test/test_socket.py", line 344, in testGetServBy
    eq(socket.getservbyport(port2), service)
error: port/proto not found

----------
components: Tests
messages: 58528
nosy: cartman
severity: normal
status: open
title: test_socket.py fails
type: compile error
versions: Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1610>
__________________________________


More information about the Python-bugs-list mailing list