Skip to content

Commit 4af2ed3

Browse files
Shwetha-Acharyaanoopcs9
authored andcommitted
testcases/containers: variable not used/assigned
flake8 complains that global container_tests is unused and it is never assigned in scope. Fixed the same by removing the unused global declaration within the function and adding an appropriate comment. Signed-off-by: Shwetha K Acharya <[email protected]>
1 parent c5710bb commit 4af2ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testcases/containers/test_containers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

2626
def load_container_tests() -> int:
27-
global container_tests
27+
# This modifies the global container_tests
2828
with open(container_tests_file) as f:
2929
ct = yaml.safe_load(f)
3030
if ct is None:

0 commit comments

Comments
 (0)