Skip to content
Snippets Groups Projects
Commit 47538cc8 authored by Damien George's avatar Damien George
Browse files

tests: Add test for micropython const feature when it has a SyntaxError.

parent 62a3a287
Branches
Tags
No related merge requests found
# make sure syntax error works corrects for bad const definition
try:
exec("a = const(x)")
except SyntaxError:
print("SyntaxError")
SyntaxError
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment