[Python-Dev] test_socketserver flakey?

Guido van Rossum guido at python.org
Tue Apr 3 19:15:54 CEST 2007


On 4/3/07, Guido van Rossum <guido at python.org> wrote:
> On 4/3/07, Hasan Diwan <hasan.diwan at gmail.com> wrote:
> > > Guido van Rossum wrote:
> > > > The test_socketserver unittest seems to be failing occasionally for
> > > > me. (Svn HEAD, Ubuntu dapper.)
> >
> > Specifically, which test is failing?
>
> Hard to say -- so far, I've just seen the blanket "test failed" report
> from regrtest.py, occasionally. The few times I ran the test directly
> it passed. I'll try running it in a loop to see what happens.

OK, did that, after a bunch of iterations it failed like this:

ADDR = @test17637
CLASS = SocketServer.UnixStreamServer
server created
server running
test client 0
test test_socketserver crashed -- <class 'socket.error'>: (2, 'No such
file or directory')
Traceback (most recent call last):
  File "../Lib/test/regrtest.py", line 557, in runtest_inner
    indirect_test()
  File "/usr/local/google/home/guido/python/trunk/Lib/test/test_socketserver.py",
line 212, in test_main
    testall()
  File "/usr/local/google/home/guido/python/trunk/Lib/test/test_socketserver.py",
line 200, in testall
    testloop(socket.AF_UNIX, streamservers, MyStreamHandler, teststream)
  File "/usr/local/google/home/guido/python/trunk/Lib/test/test_socketserver.py",
line 144, in testloop
    testfunc(proto, addr)
  File "/usr/local/google/home/guido/python/trunk/Lib/test/test_socketserver.py",
line 62, in teststream
    s.connect(addr)
  File "<string>", line 1, in connect
error: (2, 'No such file or directory')

--
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list