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