[Python-Dev] Recent logging spew

Georg Brandl g.brandl at gmx.net
Sat Aug 12 10:33:21 CEST 2006


Tim Peters wrote:
> We're getting an awful lot of these turds at the ends of test runs now:
> 
> Error in atexit._run_exitfuncs:


> Not sure what caused it, but suspect this:
> 
> """
> Author: georg.brandl
> Date: Fri Aug 11 09:26:10 2006
> New Revision: 51206
> 
> Modified:
>   python/trunk/Lib/logging/__init__.py
>   python/trunk/Misc/NEWS
> Log:
> logging's atexit hook now runs even if the rest of the module has
> already been cleaned up.
> """
> 
> Anyway, can we stop this?  It doesn't look like "a feature" from here ;-)

If it was a feature, it couldn't have gone in right now ;-)

But yes, I confirmed that that change caused it. I've now found the problem:
one of the test_logging tests reassigned _handlerList, causing it to go
out of sync with the handlerList stored in shutdown().

Fixed in rev. 51235.

Georg



More information about the Python-Dev mailing list