tests: Add test for micropython const feature when it has a SyntaxError.
This commit is contained in:
parent
62a3a287d9
commit
47538cc880
6
tests/micropython/const_error.py
Normal file
6
tests/micropython/const_error.py
Normal file
@ -0,0 +1,6 @@
|
||||
# make sure syntax error works corrects for bad const definition
|
||||
|
||||
try:
|
||||
exec("a = const(x)")
|
||||
except SyntaxError:
|
||||
print("SyntaxError")
|
1
tests/micropython/const_error.py.exp
Normal file
1
tests/micropython/const_error.py.exp
Normal file
@ -0,0 +1 @@
|
||||
SyntaxError
|
Loading…
x
Reference in New Issue
Block a user