aboutsummaryrefslogtreecommitdiffstats
path: root/functest/core
diff options
context:
space:
mode:
authorhelenyao <yaohelan@huawei.com>2016-12-19 22:18:33 -0500
committerhelenyao <yaohelan@huawei.com>2016-12-20 07:34:48 -0500
commitb69a7d6b3cbcceedb0f1f37f736a593fd77fc0be (patch)
tree095ca8ddfbf8e4fd9f7d3754d7f0104976ec336d /functest/core
parentef43b6cbc6b445762dd7d48491dfe670bac2f710 (diff)
Remove backslash to meet PEP8 requirement
JIRA: FUNCTEST-630 Change-Id: Ia02760fd98aaab59a6cf0a90a2020b76e0c92df6 Signed-off-by: helenyao <yaohelan@huawei.com>
Diffstat (limited to 'functest/core')
-rwxr-xr-x[-rw-r--r--]functest/core/pytest_suite_runner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/functest/core/pytest_suite_runner.py b/functest/core/pytest_suite_runner.py
index 2d5b2667..1eed92b5 100644..100755
--- a/functest/core/pytest_suite_runner.py
+++ b/functest/core/pytest_suite_runner.py
@@ -41,8 +41,8 @@ class PyTestSuiteRunner(base.TestcaseBase):
for test, message in result.failures:
self.logger.error(str(test) + " FAILED with " + message)
- if (result.errors and len(result.errors) > 0) \
- or (result.failures and len(result.failures) > 0):
+ if ((result.errors and len(result.errors) > 0)
+ or (result.failures and len(result.failures) > 0)):
self.logger.info("%s FAILED" % self.case_name)
self.criteria = 'FAIL'
exit_code = base.TestcaseBase.EX_RUN_ERROR