()
| 190 | |
| 191 | |
| 192 | def test_filename_with_bracket(): |
| 193 | console = Console(width=100, file=io.StringIO()) |
| 194 | try: |
| 195 | exec(compile("1/0", filename="<string>", mode="exec")) |
| 196 | except Exception: |
| 197 | console.print_exception() |
| 198 | exception_text = console.file.getvalue() |
| 199 | assert "<string>" in exception_text |
| 200 | |
| 201 | |
| 202 | def test_filename_not_a_file(): |
nothing calls this directly
no test coverage detected