diff options
Diffstat (limited to 'test/input/func_exec_used_py30.py')
-rw-r--r-- | test/input/func_exec_used_py30.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/input/func_exec_used_py30.py b/test/input/func_exec_used_py30.py new file mode 100644 index 0000000..dbcc024 --- /dev/null +++ b/test/input/func_exec_used_py30.py @@ -0,0 +1,13 @@ +"""test global statement""" + +__revision__ = 0 + +exec('a = __revision__') +exec('a = 1', globals={}) + +exec('a = 1', globals=globals()) + +def func(): + """exec in local scope""" + exec('b = 1') + |