[Kimchi-devel] [PATCH V1] Have a meaningful description for the exception test #81

Shu Ming shuming at linux.vnet.ibm.com
Wed Feb 26 15:47:48 UTC 2014


This is what the case trys to test if  a faked
exception can be caught properly by the task thread.
So a meaningful description is added to avoid confusing
---
 tests/test_rest.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/test_rest.py b/tests/test_rest.py
index ca96dc0..06ceeaf 100644
--- a/tests/test_rest.py
+++ b/tests/test_rest.py
@@ -73,7 +73,8 @@ class RestTests(unittest.TestCase):
 
     def _except_op(self, cb, opaque):
         time.sleep(1)
-        raise Exception("Oops")
+        raise Exception("Oops, this is an exception handle test."
+                        " You can ignore it safely")
         cb('success', True)
 
     def _intermid_op(self, cb, opaque):
-- 
1.8.1.4




More information about the Kimchi-devel mailing list