[asterisk-commits] mjordan: testsuite/asterisk/trunk r3952 - /asterisk/trunk/lib/python/asterisk/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jul 22 16:01:49 CDT 2013


Author: mjordan
Date: Mon Jul 22 16:01:48 2013
New Revision: 3952

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3952
Log:
Remove passing test_object as a parameter to the start callback

Nothing else did it, and since pluggable modules are given the test_object
in their constructor, it really isn't necessary.

Modified:
    asterisk/trunk/lib/python/asterisk/TestCase.py

Modified: asterisk/trunk/lib/python/asterisk/TestCase.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/TestCase.py?view=diff&rev=3952&r1=3951&r2=3952
==============================================================================
--- asterisk/trunk/lib/python/asterisk/TestCase.py (original)
+++ asterisk/trunk/lib/python/asterisk/TestCase.py Mon Jul 22 16:01:48 2013
@@ -284,7 +284,7 @@
         def __run_callback(result):
             """ Notify the test that we are running """
             for callback in self._start_callbacks:
-                callback(self)
+                callback()
             self.run()
             return result
 
@@ -507,12 +507,12 @@
         self._pcap_callbacks.append(callback)
 
     def register_start_observer(self, callback):
-        ''' Register an observer that will be called when all Asterisk instances have
-        started
+        ''' Register an observer that will be called when all Asterisk instances
+        have started
 
         Parameters:
         callback The deferred callback function to be called when all instances of
-        Asterisk have started. This will be passed this object as a parameter.
+        Asterisk have started. The callback should take no parameters.
         '''
         self._start_callbacks.append(callback)
 




More information about the asterisk-commits mailing list