]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests/cgroup: Fix quote warnings
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 12 Aug 2024 06:29:04 +0000 (11:59 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 20 Aug 2024 20:42:50 +0000 (14:42 -0600)
Fix "Q003 Change outer quotes to avoid escaping inner quotes" and
"Q000 Double quotes found but single quotes preferred" warnings.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/ftests/cgroup.py

index 444f50a2910df442ec01a718960eacfb0d5925a1..828e7e3ad3d9cae459eb20f767e9b7ee07b74cd4 100644 (file)
@@ -630,7 +630,7 @@ class Cgroup(object):
             if re.ret == 0 and \
                'neither deny nor allow list' in re.stderr:
                 res = re.stdout
-            elif re.ret == 0 and 'ERROR: can\'t get' in re.stderr:
+            elif re.ret == 0 and "ERROR: can\'t get" in re.stderr:
                 res = re.stdout
             else:
                 raise (re)
@@ -1179,7 +1179,7 @@ class Cgroup(object):
             # all of the controllers exist,  Yippee
             return True
         else:
-            raise ValueError("Unsupported type: {}".format(type(ctrl_name)))
+            raise ValueError('Unsupported type: {}'.format(type(ctrl_name)))
 
     # Method to enable or disable controllers in the subtree control file
     @staticmethod