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

stackless
Damien George 2015-03-01 12:06:24 +00:00
parent 62a3a287d9
commit 47538cc880
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,6 @@
# make sure syntax error works corrects for bad const definition
try:
exec("a = const(x)")
except SyntaxError:
print("SyntaxError")

View File

@ -0,0 +1 @@
SyntaxError