circuitpython/tests/basics/closure_manyvars.py
Damien George 214179b430 tests: Add tests for SyntaxError, TypeError, and other missing things.
This is intended to improve coverage of the test suite.
2015-03-25 23:10:09 +00:00

10 lines
175 B
Python

# test closure with lots of closed over variables
def f():
a, b, c, d, e, f, g, h = [i for i in range(8)]
def x():
print(a, b, c, d, e, f, g, h)
x()
f()