diff --git a/Lib/test/test_symtable.py b/Lib/test/test_symtable.py index c521439660f..c513308650b 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))