Commit 50155021 authored by Jeremy Hylton's avatar Jeremy Hylton

update to use new symtable interface

parent 0f2ba79b
...@@ -2,7 +2,8 @@ from test_support import verify ...@@ -2,7 +2,8 @@ from test_support import verify
import _symtable 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))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment