test for is_nested failure

This commit is contained in:
Dave Halter
2014-05-16 13:00:13 +02:00
parent 8e27ed556e
commit 4e596060b9
4 changed files with 14 additions and 3 deletions

View File

@@ -137,5 +137,5 @@ def get_module_statements(module):
for scope in module.walk():
imports |= set(scope.imports)
stmts |= add_stmts(scope.statements)
stmts |= add_stmts(scope.returns)
stmts |= add_stmts(r for r in scope.returns if r is not None)
return stmts, imports