diff options
Diffstat (limited to 'tests/micropython/const_error.py')
-rw-r--r-- | tests/micropython/const_error.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/micropython/const_error.py b/tests/micropython/const_error.py new file mode 100644 index 000000000..fa7deaaf3 --- /dev/null +++ b/tests/micropython/const_error.py @@ -0,0 +1,6 @@ +# make sure syntax error works corrects for bad const definition + +try: + exec("a = const(x)") +except SyntaxError: + print("SyntaxError") |