summaryrefslogtreecommitdiff
path: root/tests/micropython/const.py
diff options
context:
space:
mode:
authormicroDev <70126934+microDev1@users.noreply.github.com>2021-03-15 19:27:36 +0530
committermicroDev <70126934+microDev1@users.noreply.github.com>2021-03-15 19:27:36 +0530
commita52eb88031620a81521b937f2a0651dbac2bb350 (patch)
tree017cbf8f686b252241182ef61ce48e8457aa1577 /tests/micropython/const.py
parent090b6ba42fcdfbb16844f77892087f91aa6ea201 (diff)
run code formatting script
Diffstat (limited to 'tests/micropython/const.py')
-rw-r--r--tests/micropython/const.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/micropython/const.py b/tests/micropython/const.py
index 660a095f2..1faf22be9 100644
--- a/tests/micropython/const.py
+++ b/tests/micropython/const.py
@@ -7,9 +7,11 @@ Y = const(X + 456)
print(X, Y + 1)
+
def f():
print(X, Y + 1)
+
f()
_X = const(12)
@@ -17,9 +19,11 @@ _Y = const(_X + 34)
print(_X, _Y)
+
class A:
Z = const(1)
_Z = const(2)
print(Z, _Z)
-print(hasattr(A, 'Z'), hasattr(A, '_Z'))
+
+print(hasattr(A, "Z"), hasattr(A, "_Z"))