From: Kamalesh Babulal Date: Thu, 11 Jul 2024 10:23:31 +0000 (+0530) Subject: ftests/071: Fix quote warnings X-Git-Tag: v3.2.0~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=10c3add093a3531c11bdc83488a03f0c6532b667;p=thirdparty%2Flibcgroup.git ftests/071: Fix quote warnings Fix multiple "Q003 Change outer quotes to avoid escaping inner quotes" warnings. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- diff --git a/tests/ftests/071-sudo-set_default_systemd_cgroup.py b/tests/ftests/071-sudo-set_default_systemd_cgroup.py index 1952dd50..db34deab 100755 --- a/tests/ftests/071-sudo-set_default_systemd_cgroup.py +++ b/tests/ftests/071-sudo-set_default_systemd_cgroup.py @@ -58,7 +58,7 @@ def test(config): except RuntimeError as re: if 'Failed to set' not in str(re): result = consts.TEST_FAILED - cause = 'Expected \'Failed to set\' to be in the exception, ' \ + cause = "Expected 'Failed to set' to be in the exception, " \ 'received {}'.format(str(re)) else: result = consts.TEST_FAILED @@ -110,7 +110,7 @@ def test(config): except RuntimeError as re: if 'Failed to set' not in str(re): result = consts.TEST_FAILED - tmp_cause = 'Expected \'Failed to set\' to be in the exception, ' \ + tmp_cause = "Expected 'Failed to set' to be in the exception, " \ 'received {}'.format(str(re)) cause = '\n'.join(filter(None, [cause, tmp_cause])) else: @@ -133,7 +133,7 @@ def test(config): if pid != cg_pid: result = consts.TEST_FAILED - tmp_cause = 'Expected pid {} to be in \'/\' cgroup, but received pid {} ' \ + tmp_cause = "Expected pid {} to be in '/' cgroup, but received pid {} " \ 'instead'.format(pid, cg_pid) cause = '\n'.join(filter(None, [cause, tmp_cause]))