[Zope3-checkins] CVS: Zope3 - test.py:1.91

Fred L. Drake, Jr. fred at zope.com
Wed Mar 17 15:45:41 EST 2004


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv22902

Modified Files:
	test.py 
Log Message:
if we have zLOG, don't allow it to clobber our initialization


=== Zope3/test.py 1.90 => 1.91 ===
--- Zope3/test.py:1.90	Wed Mar 17 15:15:30 2004
+++ Zope3/test.py	Wed Mar 17 15:45:40 2004
@@ -720,6 +720,15 @@
     elif level:
         logging.root.setLevel(int(level))
 
+    try:
+        import zLOG
+    except ImportError:
+        pass
+    else:
+        def null_initializer():
+            pass
+        zLOG.set_initializer(null_initializer)
+
     files = find_tests(module_filter)
     files.sort()
 




More information about the Zope3-Checkins mailing list