summaryrefslogtreecommitdiffstats
path: root/openshift-storage-libs/openshiftstoragelibs/baseclass.py
diff options
context:
space:
mode:
authorValerii Ponomarov <vponomar@redhat.com>2019-08-30 18:58:22 +0530
committervponomar <vponomar@redhat.com>2019-09-03 12:29:39 +0000
commitf711a5f1dd6df3e661d31b723792e5682e900773 (patch)
treee0fc7bc168ea2afbd40660e7a95875045a6958ed /openshift-storage-libs/openshiftstoragelibs/baseclass.py
parent5c2f44b77449f47c5c9f437d580c2c6a73e27af0 (diff)
Fix pep8 errors in the files of the 'openshift-storage-libs' dir
Change-Id: Iaa7deca275958d4de68601dc16d1920f3dab85f2
Diffstat (limited to 'openshift-storage-libs/openshiftstoragelibs/baseclass.py')
-rw-r--r--openshift-storage-libs/openshiftstoragelibs/baseclass.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/openshift-storage-libs/openshiftstoragelibs/baseclass.py b/openshift-storage-libs/openshiftstoragelibs/baseclass.py
index e55ef84..60875a2 100644
--- a/openshift-storage-libs/openshiftstoragelibs/baseclass.py
+++ b/openshift-storage-libs/openshiftstoragelibs/baseclass.py
@@ -109,8 +109,8 @@ class BaseClass(unittest.TestCase):
g.log.info(msg)
def setUp(self):
- if (BaseClass.STOP_ON_FIRST_FAILURE and
- BaseClass.ERROR_OR_FAILURE_EXISTS):
+ if (BaseClass.STOP_ON_FIRST_FAILURE
+ and BaseClass.ERROR_OR_FAILURE_EXISTS):
self.skipTest("Test is skipped, because of the restriction "
"to one test case failure.")
@@ -306,9 +306,9 @@ class BaseClass(unittest.TestCase):
return True
def doCleanups(self):
- if (BaseClass.STOP_ON_FIRST_FAILURE and (
- self.ERROR_OR_FAILURE_EXISTS or
- self._is_error_or_failure_exists())):
+ if (BaseClass.STOP_ON_FIRST_FAILURE
+ and (self.ERROR_OR_FAILURE_EXISTS
+ or self._is_error_or_failure_exists())):
while self._cleanups:
(func, args, kwargs) = self._cleanups.pop()
msg = ("Found test case failure. Avoiding run of scheduled "
@@ -319,8 +319,8 @@ class BaseClass(unittest.TestCase):
@classmethod
def doClassCleanups(cls):
- if (BaseClass.STOP_ON_FIRST_FAILURE and
- BaseClass.ERROR_OR_FAILURE_EXISTS):
+ if (BaseClass.STOP_ON_FIRST_FAILURE
+ and BaseClass.ERROR_OR_FAILURE_EXISTS):
while cls._class_cleanups:
(func, args, kwargs) = cls._class_cleanups.pop()
msg = ("Found test case failure. Avoiding run of scheduled "