summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_symtable.py
blob: 44f156e8bf8c691f428f6824e4795c994420efe2 (plain)
1
2
3
4
5
6
7
8
from test.test_support import verify

import _symtable

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)