diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-02-02 18:24:26 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-02-02 18:24:26 (GMT) |
commit | 5e7cb240afa0d28f19c92ea84a85113cc6eba5bb (patch) | |
tree | eb1830dd3e1876e8c6af285fb88671b7a54058ee /Lib/test/test_symtable.py | |
parent | 4b38da664c107bc08768235a66621429beef5444 (diff) | |
download | cpython-5e7cb240afa0d28f19c92ea84a85113cc6eba5bb.zip cpython-5e7cb240afa0d28f19c92ea84a85113cc6eba5bb.tar.gz cpython-5e7cb240afa0d28f19c92ea84a85113cc6eba5bb.tar.bz2 |
Add minimal interface to symtable: _symtable module.
Diffstat (limited to 'Lib/test/test_symtable.py')
-rw-r--r-- | Lib/test/test_symtable.py | 8 |
1 files changed, 8 insertions, 0 deletions
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)) |