better-exceptions/test/test_syntax_error.py

13 lines
133 B
Python

# -*- coding:utf-8 -*-
import better_exceptions
better_exceptions.hook()
code = """
if True:
a = 5
b = 7 *
"""
exec(code)