circuitpython/tests/basics/builtin_eval_error.py
Damien George 34f26ea862 tests: Allow tests to pass against CPython 3.5.
All breaking changes going from 3.4 to 3.5 are contained in
basics/python34.py.
2015-10-02 13:01:47 +01:00

7 lines
110 B
Python

# test if eval raises SyntaxError
try:
print(eval("[1,,]"))
except SyntaxError:
print("SyntaxError")