[Zope-Checkins] CVS: Zope2 - dispatcher.py:1.1.2.5

Andreas Jung andreas@dhcp165.digicool.com
Mon, 12 Mar 2001 12:39:04 -0500


Update of /mnt/cvs-repository/Zope2/lib/python/Testing
In directory yetix:/work/Zope2/Catalog-BTrees-Integration/lib/python/Testing

Modified Files:
      Tag: Catalog-BTrees-Integration
	dispatcher.py 
Log Message:
additional logging of the function name passed to the TestCase constructor



--- Updated File dispatcher.py in package Zope2 --
--- dispatcher.py	2001/03/12 15:32:49	1.1.2.4
+++ dispatcher.py	2001/03/12 17:39:02	1.1.2.5
@@ -17,12 +17,13 @@
     a multi-purpose thread dispatcher 
     """
     
-    def __init__(self): 
+    def __init__(self,func=''): 
         self.fp = sys.stderr
         self.f_startup = []
         self.f_teardown = []
         self.lastlog = ""
         self.lock 	    = threading.Lock()
+        self.func = func
         self.profiling = 0
         
     def setlog(self,fp):
@@ -78,6 +79,7 @@
         for th in self._threads: 			th.start()
         while threading.activeCount() > 1: time.sleep(1)
         
+        self.logn('FUNC: %s ' % self.func)
         self.logn('ID: %s ' % self.name)
         self.logn('Args: %s' % params)