mirror of
https://github.com/Textualize/rich.git
synced 2025-08-02 01:02:34 +00:00
Fix test in traceback, remove the no-eval pre-commit hook
This commit is contained in:
parent
633faab16d
commit
b90c33eae7
2 changed files with 1 additions and 2 deletions
|
@ -21,7 +21,6 @@ repos:
|
||||||
rev: v1.9.0
|
rev: v1.9.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: python-check-mock-methods
|
- id: python-check-mock-methods
|
||||||
- id: python-no-eval
|
|
||||||
- id: python-no-log-warn
|
- id: python-no-log-warn
|
||||||
- id: python-use-type-annotations
|
- id: python-use-type-annotations
|
||||||
- id: rst-directive-colons
|
- id: rst-directive-colons
|
||||||
|
|
|
@ -110,7 +110,7 @@ def test_syntax_error():
|
||||||
console = Console(width=100, file=io.StringIO())
|
console = Console(width=100, file=io.StringIO())
|
||||||
try:
|
try:
|
||||||
# raises SyntaxError: unexpected EOF while parsing
|
# raises SyntaxError: unexpected EOF while parsing
|
||||||
compile("(2+2")
|
eval("(2+2")
|
||||||
except Exception:
|
except Exception:
|
||||||
console.print_exception()
|
console.print_exception()
|
||||||
exception_text = console.file.getvalue()
|
exception_text = console.file.getvalue()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue