Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
fb4d6ecd0757c0863b8a2e45a57a6dfec13fbff6
/
.
/
Lib
/
test
/
test_symtable.py
blob: 44f156e8bf8c691f428f6824e4795c994420efe2 [
file
] [
log
] [
blame
]
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
)