mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
tests: Rename test scripts, changing - to _ for consistency.
From now on, all new tests must use underscore. Addresses issue #727.
This commit is contained in:
22
tests/basics/del_deref.py
Normal file
22
tests/basics/del_deref.py
Normal file
@@ -0,0 +1,22 @@
|
||||
def f():
|
||||
x = 1
|
||||
y = 2
|
||||
def g():
|
||||
nonlocal x
|
||||
print(y)
|
||||
try:
|
||||
print(x)
|
||||
except NameError:
|
||||
print("NameError")
|
||||
def h():
|
||||
nonlocal x
|
||||
print(y)
|
||||
try:
|
||||
del x
|
||||
except NameError:
|
||||
print("NameError")
|
||||
print(x, y)
|
||||
del x
|
||||
g()
|
||||
h()
|
||||
f()
|
||||
Reference in New Issue
Block a user