You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2009/06/02 17:22:46 UTC

svn commit: r781058 - /qpid/trunk/qpid/python/qpid-python-test

Author: rhs
Date: Tue Jun  2 15:22:34 2009
New Revision: 781058

URL: http://svn.apache.org/viewvc?rev=781058&view=rev
Log:
removed turnary if

Modified:
    qpid/trunk/qpid/python/qpid-python-test

Modified: qpid/trunk/qpid/python/qpid-python-test
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid-python-test?rev=781058&r1=781057&r2=781058&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid-python-test (original)
+++ qpid/trunk/qpid/python/qpid-python-test Tue Jun  2 15:22:34 2009
@@ -447,7 +447,11 @@
       failed += 1
 
 if not list_only:
+  if failed:
+    outcome = "fail"
+  else:
+    outcome = "pass"
   print colorize("Totals:", 1), \
       colorize_word("total", "%s tests" % len(filtered)) + ",", \
       colorize_word("pass", "%s passed" % passed) + ",", \
-      colorize_word("fail" if failed else "pass", "%s failed" % failed)
+      colorize_word(outcome, "%s failed" % failed)



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org