Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
f69d3c9849dd8aaea11def67ba0f009dc8492d2f
/
.
/
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
)