]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests/031: Fix couple of quite warnings
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 25 Jul 2024 10:45:49 +0000 (16:15 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 20 Aug 2024 20:42:50 +0000 (14:42 -0600)
Fix "Q001 Single quote multiline found but double quotes preferred" and
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/031-lscgroup-g_flag.py

index 334a3e996364776f99f6f12b7896eab71820b683..339da4925aafb537596a195f2f3db1b8cf97f85a 100755 (executable)
@@ -27,9 +27,9 @@ GRANDCHILD_CGNAME = 'grandchildlscgroup'
 # When invoking lscgroup with the -g flag, a trailing slash is present on
 # the first cgroup returned (i.e. the cgroup specified in the -g flag)
 #
-EXPECTED_OUT1 = '''{}:/{}/
+EXPECTED_OUT1 = """{}:/{}/
 {}:/{}/{}
-{}:/{}/{}/{}'''.format(CONTROLLER, PARENT_CGNAME,
+{}:/{}/{}/{}""".format(CONTROLLER, PARENT_CGNAME,
                        CONTROLLER, PARENT_CGNAME, CHILD_CGNAME,
                        CONTROLLER, PARENT_CGNAME, CHILD_CGNAME,
                        GRANDCHILD_CGNAME)
@@ -75,9 +75,9 @@ def test(config):
         result = consts.TEST_FAILED
         cause = (
                     "Expected lscgroup output doesn't match received output\n'"
-                    "Expected:\n{}\n"
-                    "Received:\n{}\n"
-                    "".format(utils.indent(EXPECTED_OUT1, 4),
+                    'Expected:\n{}\n'
+                    'Received:\n{}\n'
+                    ''.format(utils.indent(EXPECTED_OUT1, 4),
                               utils.indent(out, 4))
                 )