]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
tests-059: fix flake8 warnings
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 3 Apr 2023 10:05:04 +0000 (15:35 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 3 Apr 2023 15:11:52 +0000 (09:11 -0600)
Fix "F401 'utils' imported but unused" and
"E303 too many blank lines (2)" warnings.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit fc3e59ba70fab31955b58ee3271b1d0ba45a5af9)

tests/ftests/059-sudo-invalid_systemd_create_scope2.py

index 228ff351a54a911bf7a2a4092582bb6f3447d650..1b40e4387779a2ddc6b767a17348fdfa55dd5179 100755 (executable)
@@ -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: