repo.or.cz
/
python
/
dscho.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updated for 2.1b2 distribution.
[python/dscho.git]
/
Lib
/
test
/
test_symtable.py
blob
56d772ea4553af90bafae306ba2d2ca0dabf295f
1
from
test_support
import
verify
2
3
import
_symtable
4
5
symbols
=
_symtable
.
symtable
(
"def f(x): return x"
,
"?"
,
"exec"
)
6
7
verify
(
symbols
[
0
].
name
==
"global"
)
8
verify
(
len
([
ste
for
ste
in
symbols
.
values
()
if
ste
.
name
==
"f"
]) ==
1
)