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

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

Reviewed-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com> On 02/26/2014 11:47 PM, Shu Ming wrote:
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):
-- Thanks and best regards! Sheldon Feng(冯少合)<shaohef@linux.vnet.ibm.com> IBM Linux Technology Center
participants (3)
-
Aline Manera
-
Sheldon
-
Shu Ming