summaryrefslogtreecommitdiff
path: root/tests/pyscript/py_locals.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pyscript/py_locals.py')
-rw-r--r--tests/pyscript/py_locals.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/pyscript/py_locals.py b/tests/pyscript/py_locals.py
new file mode 100644
index 00000000..16cb6926
--- /dev/null
+++ b/tests/pyscript/py_locals.py
@@ -0,0 +1,5 @@
+# flake8: noqa F821
+# Tests how much a pyscript can affect cmd2.Cmd.py_locals
+
+del [locals()["test_var"]]
+my_list.append(2)