diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-02-09 22:57:10 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-02-09 22:57:10 (GMT) |
commit | 11db72a5c38f13e00a7a816b7bd9947555789930 (patch) | |
tree | f72c867feaa89e064cdc6d30465ea75194aa2630 /Lib/test | |
parent | 97a01674b25739e0fc9e534dacf5a683d8b399e0 (diff) | |
download | cpython-11db72a5c38f13e00a7a816b7bd9947555789930.zip cpython-11db72a5c38f13e00a7a816b7bd9947555789930.tar.gz cpython-11db72a5c38f13e00a7a816b7bd9947555789930.tar.bz2 |
update to use new symtable interface
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_symtable.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/test/test_symtable.py b/Lib/test/test_symtable.py index c521439..c513308 100644 --- a/Lib/test/test_symtable.py +++ b/Lib/test/test_symtable.py @@ -2,7 +2,8 @@ from test_support import verify import _symtable -symbols, scopes = _symtable.symtable("def f(x): return x", "?", "exec") +symbols = _symtable.symtable("def f(x): return x", "?", "exec") + +verify(symbols[0].name == "global") +verify(len([ste for ste in symbols.values() if ste.name == "f"]) == 1) -verify(symbols.has_key(0)) -verify(scopes.has_key(0)) |