You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
tests: Add test for micropython const feature when it has a SyntaxError.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# make sure syntax error works corrects for bad const definition
|
||||
|
||||
try:
|
||||
exec("a = const(x)")
|
||||
except SyntaxError:
|
||||
print("SyntaxError")
|
||||
@@ -0,0 +1 @@
|
||||
SyntaxError
|
||||
Reference in New Issue
Block a user