Fix the ast.Module call for py3.8
PiperOrigin-RevId: 297635802 Change-Id: I4692addd0c904567f45c67d6e8a01fb0ca3db5f6
This commit is contained in:
parent
a47a7f4ad1
commit
feacb9f254
@ -178,7 +178,7 @@ def run_user_main(wrapped_test_module):
|
||||
wrapped_test_module.__name__)
|
||||
|
||||
# expr is defined because we would have raised an error otherwise.
|
||||
new_ast = ast.Module(body=expr.body) # pylint:disable=undefined-loop-variable
|
||||
new_ast = ast.Module(body=expr.body, type_ignores=[]) # pylint:disable=undefined-loop-variable
|
||||
exec( # pylint:disable=exec-used
|
||||
compile(new_ast, '<ast>', 'exec'),
|
||||
globals(),
|
||||
|
Loading…
Reference in New Issue
Block a user