Fix test in traceback, remove the no-eval pre-commit hook

This commit is contained in:
Darren Burns 2022-01-31 14:24:33 +00:00
parent 633faab16d
commit b90c33eae7
2 changed files with 1 additions and 2 deletions

View file

@ -110,7 +110,7 @@ def test_syntax_error():
console = Console(width=100, file=io.StringIO())
try:
# raises SyntaxError: unexpected EOF while parsing
compile("(2+2")
eval("(2+2")
except Exception:
console.print_exception()
exception_text = console.file.getvalue()