summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/output/test_symtable1
-rw-r--r--Lib/test/test_symtable.py8
2 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/output/test_symtable b/Lib/test/output/test_symtable
new file mode 100644
index 0000000..24b9cda
--- /dev/null
+++ b/Lib/test/output/test_symtable
@@ -0,0 +1 @@
+test_symtable
diff --git a/Lib/test/test_symtable.py b/Lib/test/test_symtable.py
new file mode 100644
index 0000000..c521439
--- /dev/null
+++ b/Lib/test/test_symtable.py
@@ -0,0 +1,8 @@
+from test_support import verify
+
+import _symtable
+
+symbols, scopes = _symtable.symtable("def f(x): return x", "?", "exec")
+
+verify(symbols.has_key(0))
+verify(scopes.has_key(0))