Simplified boolean variable check
Currently 'test_list' variable is being checked for empty list like 'if test_list == []:'. The more standard approach is like 'if not test_list:'. TrivialFix Change-Id: I0b389c11b992c93529b305b1ebce6b181f9a9a30
This commit is contained in:
parent
201090b0bc
commit
b93d214442
@ -78,7 +78,7 @@ def main():
|
||||
for test in tests:
|
||||
test_list.append(string.replace(test[0:-3], '/', '.'))
|
||||
|
||||
if test_list == []:
|
||||
if not test_list:
|
||||
test_works = False
|
||||
expect_failure = ""
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user