blob: c513308650bb26f188b0a913f413a07a9af6a509 (
plain)
1
2
3
4
5
6
7
8
9
|
from 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)
|