Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
2a037408
Commit
2a037408
authored
Apr 05, 2014
by
Damien George
Browse files
tests: Add test to check issue #429.
parent
efccbf6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/basics/globals-del.py
0 → 100644
View file @
2a037408
"""
1
"""
def
_f
():
pass
FunctionType
=
type
(
_f
)
LambdaType
=
type
(
lambda
:
None
)
CodeType
=
None
MappingProxyType
=
None
SimpleNamespace
=
None
def
_g
():
yield
1
GeneratorType
=
type
(
_g
())
class
_C
:
def
_m
(
self
):
pass
MethodType
=
type
(
_C
().
_m
)
BuiltinFunctionType
=
type
(
len
)
BuiltinMethodType
=
type
([].
append
)
del
_f
# print only the first 8 chars, since we have different str rep to CPython
print
(
str
(
FunctionType
)[:
8
])
print
(
str
(
BuiltinFunctionType
)[:
8
])
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment