From: Kamalesh Babulal Date: Mon, 22 Jul 2024 10:39:42 +0000 (+0530) Subject: ftests/039: Fix quote warnings X-Git-Tag: v3.2.0~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88a8ce3e40deda03469605be9b8f0f611fcca8b8;p=thirdparty%2Flibcgroup.git ftests/039: Fix quote warnings Fix multiple "Q000 Double quotes found but single quotes preferred" warnings. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- diff --git a/tests/ftests/039-pybindings-cgxget.py b/tests/ftests/039-pybindings-cgxget.py index 9e609e18..6510e0e1 100755 --- a/tests/ftests/039-pybindings-cgxget.py +++ b/tests/ftests/039-pybindings-cgxget.py @@ -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