(self, func, exc)
| 60 | _colorize.COLORIZE = self.colorize |
| 61 | |
| 62 | def get_exception_format(self, func, exc): |
| 63 | try: |
| 64 | func() |
| 65 | except exc as value: |
| 66 | return traceback.format_exception_only(exc, value) |
| 67 | else: |
| 68 | raise ValueError("call did not raise exception") |
| 69 | |
| 70 | def syntax_error_with_caret(self): |
| 71 | compile("def fact(x):\n\treturn x!\n", "?", "exec") |
no test coverage detected