![Damien George](/assets/img/avatar_default.png)
Used gcov to find some parts of vm.c, runtime.c, obj.c that were not covered by any tests. Still need to use gcov more thoroughly.
19 lines
239 B
Python
19 lines
239 B
Python
# del global
|
|
|
|
def do_del():
|
|
global x
|
|
del x
|
|
|
|
x = 1
|
|
print(x)
|
|
do_del()
|
|
try:
|
|
print(x)
|
|
except NameError:
|
|
print("NameError")
|
|
try:
|
|
do_del()
|
|
except: # NameError:
|
|
# FIXME uPy returns KeyError for this
|
|
print("NameError")
|