summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-02-02 18:24:26 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-02-02 18:24:26 (GMT)
commit5e7cb240afa0d28f19c92ea84a85113cc6eba5bb (patch)
treeeb1830dd3e1876e8c6af285fb88671b7a54058ee /Lib/test
parent4b38da664c107bc08768235a66621429beef5444 (diff)
downloadcpython-5e7cb240afa0d28f19c92ea84a85113cc6eba5bb.zip
cpython-5e7cb240afa0d28f19c92ea84a85113cc6eba5bb.tar.gz
cpython-5e7cb240afa0d28f19c92ea84a85113cc6eba5bb.tar.bz2
Add minimal interface to symtable: _symtable module.
Diffstat (limited to 'Lib/test')
-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))