summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_symtable.py7
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))