(self)
| 149 | self.assertEqual(err[2].count("^"), 30) |
| 150 | |
| 151 | def test_nocaret(self): |
| 152 | exc = SyntaxError("error", ("x.py", 23, None, "bad syntax")) |
| 153 | err = traceback.format_exception_only(SyntaxError, exc) |
| 154 | self.assertEqual(len(err), 3) |
| 155 | self.assertEqual(err[1].strip(), "bad syntax") |
| 156 | |
| 157 | @force_not_colorized |
| 158 | def test_no_caret_with_no_debug_ranges_flag(self): |
nothing calls this directly
no test coverage detected