Commit 3ba74b2
committed
ftests/077: drop unused global and fix list sorting
flake8 reported:
tests/ftests/077-pybindings-cgroup_get_procs.py:52:5: F824 is unused:
name is never assigned in scope
The test already appends to the module-level list, so we do not reassign
it inside setup(). Drop the unused global declaration and call
list.sort() without reassigning the result to keep the pid lists in order
before comparing them.
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>1 parent 0962009 commit 3ba74b2
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | | - | |
| 47 | + | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | | - | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
| |||
0 commit comments