micropython: add micropython component
This commit is contained in:
18
components/language/micropython/tests/basics/del_name.py
Normal file
18
components/language/micropython/tests/basics/del_name.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# del name
|
||||
|
||||
x = 1
|
||||
print(x)
|
||||
del x
|
||||
try:
|
||||
print(x)
|
||||
except NameError:
|
||||
print("NameError")
|
||||
try:
|
||||
del x
|
||||
except: # NameError:
|
||||
# FIXME uPy returns KeyError for this
|
||||
print("NameError")
|
||||
|
||||
class C:
|
||||
def f():
|
||||
pass
|
Reference in New Issue
Block a user