summaryrefslogtreecommitdiff
path: root/tests/pyscript/self_in_py.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pyscript/self_in_py.py')
-rw-r--r--tests/pyscript/self_in_py.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pyscript/self_in_py.py b/tests/pyscript/self_in_py.py
new file mode 100644
index 00000000..f0f6271a
--- /dev/null
+++ b/tests/pyscript/self_in_py.py
@@ -0,0 +1,6 @@
+# flake8: noqa F821
+# Tests self_in_py in pyscripts
+if 'self' in globals():
+ print("I see self")
+else:
+ print("I do not see self")