()
| 125 | |
| 126 | |
| 127 | def test_syntax_error(): |
| 128 | console = Console(width=100, file=io.StringIO()) |
| 129 | try: |
| 130 | # raises SyntaxError: unexpected EOF while parsing |
| 131 | eval("(2+2") |
| 132 | except SyntaxError: |
| 133 | console.print_exception() |
| 134 | exception_text = console.file.getvalue() |
| 135 | assert "SyntaxError" in exception_text |
| 136 | |
| 137 | |
| 138 | def test_nested_exception(): |
nothing calls this directly
no test coverage detected