From: Kamalesh Babulal Date: Mon, 3 Apr 2023 10:05:04 +0000 (+0530) Subject: tests-059: fix flake8 warnings X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd316a319155e077ab1f27ef63eec7f6de39ef18;p=thirdparty%2Flibcgroup.git tests-059: fix flake8 warnings Fix "F401 'utils' imported but unused" and "E303 too many blank lines (2)" warnings. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka (cherry picked from commit fc3e59ba70fab31955b58ee3271b1d0ba45a5af9) --- diff --git a/tests/ftests/059-sudo-invalid_systemd_create_scope2.py b/tests/ftests/059-sudo-invalid_systemd_create_scope2.py index 228ff351..1b40e438 100755 --- a/tests/ftests/059-sudo-invalid_systemd_create_scope2.py +++ b/tests/ftests/059-sudo-invalid_systemd_create_scope2.py @@ -11,7 +11,6 @@ from cgroup import CgroupVersion as CgroupCliVersion from libcgroup import Cgroup, Version import ftests import consts -import utils import sys import os @@ -57,7 +56,6 @@ def test(config): result = consts.TEST_FAILED cause = 'An invalid cgroup name unexpectedly passed: {}'.format(cg1.name) - cg2 = Cgroup("Invalid/TooMany/Slashes", Version.CGROUP_V2) cg2.add_controller(CONTROLLER) try: