(self)
| 126 | self.assertEqual(err[2].count("^"), 1) |
| 127 | |
| 128 | def test_nocaret(self): |
| 129 | exc = SyntaxError("error", ("x.py", 23, None, "bad syntax")) |
| 130 | err = traceback.format_exception_only(SyntaxError, exc) |
| 131 | self.assertEqual(len(err), 3) |
| 132 | self.assertEqual(err[1].strip(), "bad syntax") |
| 133 | |
| 134 | @force_not_colorized |
| 135 | def test_no_caret_with_no_debug_ranges_flag(self): |
nothing calls this directly
no test coverage detected