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:
Ravi Shekhar Jethani 2015-11-18 05:45:30 -08:00
parent 201090b0bc
commit b93d214442
1 changed files with 1 additions and 1 deletions

View File

@ -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: