summaryrefslogtreecommitdiff
path: root/tests/input/func_w0122_py_30.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/input/func_w0122_py_30.py')
-rw-r--r--tests/input/func_w0122_py_30.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/input/func_w0122_py_30.py b/tests/input/func_w0122_py_30.py
new file mode 100644
index 000000000..6b8669130
--- /dev/null
+++ b/tests/input/func_w0122_py_30.py
@@ -0,0 +1,12 @@
+"""test global statement"""
+
+__revision__ = 0
+
+exec 'a = __revision__'
+exec 'a = 1' in {}
+
+exec 'a = 1' in globals()
+
+def func():
+ """exec in local scope"""
+ exec 'b = 1'