aboutsummaryrefslogtreecommitdiff
path: root/tests/micropython/const.py.exp
diff options
context:
space:
mode:
authorDamien George2016-06-06 17:28:32 +0100
committerDamien George2016-06-06 17:28:32 +0100
commitb1533c43669c037d04c87d1756355cdc8edd5e0a (patch)
tree10dad92829abdc70036ca2398ac2dce7ce00ff60 /tests/micropython/const.py.exp
parent2bf6eb9fe2e7e2acd1ce361dd8276cb8f047f8fe (diff)
py/parse: Treat constants that start with underscore as private.
Assignments of the form "_id = const(value)" are treated as private (following a similar CPython convention) and code is no longer emitted for the assignment to a global variable. See issue #2111.
Diffstat (limited to 'tests/micropython/const.py.exp')
-rw-r--r--tests/micropython/const.py.exp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/micropython/const.py.exp b/tests/micropython/const.py.exp
index c447aaf8c..ece6a5cb2 100644
--- a/tests/micropython/const.py.exp
+++ b/tests/micropython/const.py.exp
@@ -1,2 +1,5 @@
123 580
123 580
+12 46
+1 2
+True False