Skip to content
Snippets Groups Projects
Commit 4d32dabd authored by Xavier Morel's avatar Xavier Morel
Browse files

[IMP] replace explicit iteration by listcomp

bzr revid: xmo@openerp.com-20140214143932-8nb30mkdxzt96fd5
parent 2921fa33
No related branches found
No related tags found
No related merge requests found
......@@ -331,10 +331,8 @@ def get_test_modules(module):
return []
# include submodules too
result = []
for name in sys.modules:
if name.startswith(module) and sys.modules[name]:
result.append(sys.modules[name])
result = [mod_obj for name, mod_obj in sys.modules.iteritems()
if name.startswith(module)]
return result
# Use a custom stream object to log the test executions.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment