[Zope-Checkins] CVS: ZODB3/zLOG/tests - testzLog.py:1.12.34.2
Jeremy Hylton
jeremy at zope.com
Wed Oct 1 16:27:19 EDT 2003
Update of /cvs-repository/ZODB3/zLOG/tests
In directory cvs.zope.org:/tmp/cvs-serv9955
Modified Files:
Tag: Zope-2_7-branch
testzLog.py
Log Message:
Re-initialize zLOG after tearing down the new logging handlers.
If this doesn't happen, subsequent tests that use zLOG will fail,
because the zLOG module will be left in an initialized but invalid
state.
=== ZODB3/zLOG/tests/testzLog.py 1.12.34.1 => 1.12.34.2 ===
--- ZODB3/zLOG/tests/testzLog.py:1.12.34.1 Mon Sep 15 12:45:26 2003
+++ ZODB3/zLOG/tests/testzLog.py Wed Oct 1 16:27:18 2003
@@ -68,6 +68,7 @@
del logging._handlers[h]
os.remove(self.path)
self.wipeEnvironment()
+ zLOG.initialize()
def setLog(self, severity=0):
os.environ['%s_LOG_FILE' % self.prefix] = self.path
More information about the Zope-Checkins
mailing list