tests: Use python3 compatible dict operation
This patch is made by using 2to3 command. $ find . -name *.py | xargs 2to3 -f dict -w -n Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
parent
89896c0008
commit
35d8c2545e
9 changed files with 38 additions and 38 deletions
|
@ -194,7 +194,7 @@ def main():
|
|||
logger.debug("Import test cases from " + t)
|
||||
mod = __import__(m.group(1))
|
||||
test_modules.append(mod.__name__.replace('test_', '', 1))
|
||||
for key,val in mod.__dict__.iteritems():
|
||||
for key,val in mod.__dict__.items():
|
||||
if key.startswith("test_"):
|
||||
tests.append(val)
|
||||
test_names = list(set([t.__name__.replace('test_', '', 1) for t in tests]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue