13 lines
182 B
Python
13 lines
182 B
Python
# test if eval raises SyntaxError
|
|
|
|
try:
|
|
eval
|
|
except NameError:
|
|
print("SKIP")
|
|
raise SystemExit
|
|
|
|
try:
|
|
print(eval("[1,,]"))
|
|
except SyntaxError:
|
|
print("SyntaxError")
|