aboutsummaryrefslogtreecommitdiffstats
path: root/functest/core
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2017-03-27 06:47:57 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-27 06:47:57 +0000
commit02d4be03f24ec45bdb77c2dc4cc3ebd46fdb5ee4 (patch)
treeeaf61c0a520e25115a40eff977456dd723f2ca67 /functest/core
parentdcf1e078e3ffde4ed57c0cc6da05534ab419ca22 (diff)
parente4d7506a5a21550a89f897dfaea3f0dcae352e5b (diff)
Merge "Fix pylint warnings in testcase_base"
Diffstat (limited to 'functest/core')
-rw-r--r--functest/core/testcase_base.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/functest/core/testcase_base.py b/functest/core/testcase_base.py
index 838b6398..2848073f 100644
--- a/functest/core/testcase_base.py
+++ b/functest/core/testcase_base.py
@@ -35,11 +35,12 @@ class TestcaseBase(object):
assert self.criteria
if self.criteria == 'PASS':
return TestcaseBase.EX_OK
- except:
+ except AssertionError:
self.logger.error("Please run test before checking the results")
return TestcaseBase.EX_TESTCASE_FAILED
def run(self, **kwargs):
+ # pylint: disable=unused-argument
self.logger.error("Run must be implemented")
return TestcaseBase.EX_RUN_ERROR
@@ -58,6 +59,6 @@ class TestcaseBase(object):
else:
self.logger.error("The results cannot be pushed to DB")
return TestcaseBase.EX_PUSH_TO_DB_ERROR
- except Exception:
+ except Exception: # pylint: disable=broad-except
self.logger.exception("The results cannot be pushed to DB")
return TestcaseBase.EX_PUSH_TO_DB_ERROR