]> granicus.if.org Git - python/commit
test_main(): Restore the original root logger level after running
authorTim Peters <tim.peters@gmail.com>
Fri, 30 Dec 2005 20:46:23 +0000 (20:46 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 30 Dec 2005 20:46:23 +0000 (20:46 +0000)
commit0cdc3d884ef0ac7a19446680e135b606875c12e4
treee1cf50cffe060421f281cd99b241b752c27131e3
parent1b27f86411f2593fe6137c54143c0d23f21271c7
test_main():  Restore the original root logger level after running
the tests.  This stops the confusing/annoying:

    No handlers could be found for logger "cookielib"

message we got whenever some test running after test_logging
happened to use cookielib.py (when not using regrtest's -r,
this happened during test_urllib2; when using -r, it varied).
Lib/test/test_logging.py