summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-08-12 08:32:02 (GMT)
committerGeorg Brandl <georg@python.org>2006-08-12 08:32:02 (GMT)
commitf3e304297e94b9b1956a4ed95debd1b163958d71 (patch)
treebd299773d4bff2b58b3296624ae2af746e7efb0d /Lib/test/test_logging.py
parent953c1897d2c1683e37899998d4e2bc1a9d85b6c0 (diff)
downloadcpython-f3e304297e94b9b1956a4ed95debd1b163958d71.zip
cpython-f3e304297e94b9b1956a4ed95debd1b163958d71.tar.gz
cpython-f3e304297e94b9b1956a4ed95debd1b163958d71.tar.bz2
Repair logging test spew caused by rev. 51206.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 68c23c2..ee34f8c 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -493,7 +493,7 @@ def test4():
try:
logging._handlers.clear()
logging._handlers.update(saved_handlers)
- logging._handlerList = saved_handler_list
+ logging._handlerList[:] = saved_handler_list
loggerDict = logging.getLogger().manager.loggerDict
loggerDict.clear()
loggerDict.update(saved_loggers)
@@ -560,7 +560,7 @@ def test5():
try:
logging._handlers.clear()
logging._handlers.update(saved_handlers)
- logging._handlerList = saved_handler_list
+ logging._handlerList[:] = saved_handler_list
loggerDict = logging.getLogger().manager.loggerDict
loggerDict.clear()
loggerDict.update(saved_loggers)