[Python-Dev] test_logging failing on Windows 2000

Vinay Sajip vinay_sajip@red-dove.com
Thu, 16 Jan 2003 09:03:59 -0000


[Raymond]
> Create a semaphore.
[snip]
> Bump the semaphore count up by one before running each new
> thread.
[snip]
> Have the daemons decrement the semaphore when they're done
> handling a request.
[snip]
> Have the last step in the main thread be a blocking call to the semaphore
> so that it doesn't bail out until all requests are handled.

A semaphore seems the right thing, but I think it would need to be
incremented after each *request* rather than for each thread (to correctly
match with the decrement after each request). This needs to be done in the
test script before each logging call - the alternative, to have a
SocketHandler-derived class used in the test script, may be too intrusive.

There seems to be some problem with Sourceforge CVS - I can't log in, nor
can I browse via ViewCVS. I don't have the latest version of the script (as
checked in by Neal). I'll try again in a while.

Regards,

Vinay