]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests/039: Fix quote warnings
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 22 Jul 2024 10:39:42 +0000 (16:09 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 20 Aug 2024 20:42:50 +0000 (14:42 -0600)
Fix multiple "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/039-pybindings-cgxget.py

index 9e609e18c5ed9f6c98109beadd2a27682e7a79b6..6510e0e122a1cd91b3186d77961e97f1bb1fb7e1 100755 (executable)
@@ -58,8 +58,7 @@ def test(config):
         result = consts.TEST_FAILED
         cause = (
                     "Controller length doesn't match, expected 1, but "
-                    "received {}"
-                    "".format(len(cg1.controllers))
+                    'received {}'.format(len(cg1.controllers))
                 )
         return result, cause
 
@@ -67,8 +66,8 @@ def test(config):
         result = consts.TEST_FAILED
         cause = (
                     "Settings length doesn't match, expected 1, but "
-                    " received {}"
-                    "".format(len(cg1.controllers[CONTROLLER].settings))
+                    ' received {}'
+                    ''.format(len(cg1.controllers[CONTROLLER].settings))
                 )
         return result, cause
 
@@ -91,8 +90,7 @@ def test(config):
         result = consts.TEST_FAILED
         cause = (
                     "Controller length doesn't match, expected 1, but"
-                    " received {}"
-                    "".format(len(cg2.controllers))
+                    ' received {}'.format(len(cg2.controllers))
                 )
         return result, cause
 
@@ -100,8 +98,8 @@ def test(config):
         result = consts.TEST_FAILED
         cause = (
                     "Settings length doesn't match, expected 1, but"
-                    "received {}"
-                    "".format(len(cg2.controllers[CONTROLLER].settings))
+                    'received {}'
+                    ''.format(len(cg2.controllers[CONTROLLER].settings))
                 )
         return result, cause