micropython: add micropython component
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# test attributes of builtin range type
|
||||
|
||||
try:
|
||||
range(0).start
|
||||
except AttributeError:
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
# attrs
|
||||
print(range(1, 2, 3).start)
|
||||
print(range(1, 2, 3).stop)
|
||||
print(range(1, 2, 3).step)
|
||||
|
||||
# bad attr (can't store)
|
||||
try:
|
||||
range(4).start = 0
|
||||
except AttributeError:
|
||||
print('AttributeError')
|
Reference in New Issue
Block a user