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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Jan 25 16:08:40 CST 2014


Author: mjordan
Date: Sat Jan 25 16:08:38 2014
New Revision: 4601

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4601
Log:
test_case: Swallow originate errors correctly

Returning a result from a deferred exception handler implies that the handler
passed on the error. Since the goal of swallowing the originate error is to
prevent that error from propagating any further, the errback needs to not
return any value.

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

Modified: asterisk/trunk/lib/python/asterisk/test_case.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/test_case.py?view=diff&rev=4601&r1=4600&r2=4601
==============================================================================
--- asterisk/trunk/lib/python/asterisk/test_case.py (original)
+++ asterisk/trunk/lib/python/asterisk/test_case.py Sat Jan 25 16:08:38 2014
@@ -705,7 +705,7 @@
 
         def __swallow_originate_error(result):
             """Nom nom nom"""
-            return result
+            return
 
         # Each originate call gets tagged with the channel variable
         # 'testuniqueid', which contains a UUID as the value.  When a VarSet




More information about the asterisk-commits mailing list